/*
 * Homepage entry stylesheet.
 *
 * Shared homepage composition is currently contained in core component files.
 * This entry adds the reusable blog-preview presentation used near the footer
 * and restores the compact mobile hero composition.
 */

@import url('../14-posts.css?v=20260822.4') layer(pages);

@layer overrides {
  /*
   * Homepage pricing carousel controls
   *
   * Desktop retains the existing three-column grid. The controls become
   * visible only when pricing cards switch to a horizontal mobile carousel.
   */

  .sh-pricing-carousel-nav {
    display: none;
  }

  /*
   * Mobile homepage hero
   *
   * Keep the production header and navigation while retaining the compact
   * reference composition below it. These rules intentionally override the
   * generic mobile stacking behaviour used by other page families.
   */

  @media (max-width: 700px) {
    .sh-pricing-carousel-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 2.25rem;
    }

    .sh-pricing-carousel-nav__hint {
      display: inline-flex;
      align-items: center;
      gap: 0.625rem;
      margin: 0;
      color: var(--sh-white-a70);
      font-family: var(--sh-font-mono);
      font-size: 0.6875rem;
      font-weight: var(--sh-font-weight-medium);
      line-height: 1.45;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .sh-pricing-carousel-nav__swipe-icon {
      display: grid;
      width: 1.875rem;
      height: 1.875rem;
      flex: none;
      place-items: center;
      color: var(--sh-blue-400);
      background: rgba(124, 196, 255, 0.1);
      border: 1px solid rgba(124, 196, 255, 0.28);
      border-radius: var(--sh-radius-circle);
      font-size: 0.875rem;
      box-shadow: 0 0 16px rgba(47, 107, 255, 0.12);
    }

    .sh-pricing-carousel-nav__controls {
      display: flex;
      flex: none;
      align-items: center;
      gap: 0.5rem;
    }

    .sh-pricing-carousel-nav__button {
      display: grid;
      width: 2.375rem;
      height: 2.375rem;
      padding: 0;
      place-items: center;
      color: var(--sh-white);
      background: var(--sh-white-a05);
      border: 1px solid var(--sh-white-a16);
      border-radius: var(--sh-radius-circle);
      font-size: 0.875rem;
      line-height: 1;
      transition:
        color var(--sh-duration-fast) var(--sh-ease-standard),
        background-color var(--sh-duration-fast) var(--sh-ease-standard),
        border-color var(--sh-duration-fast) var(--sh-ease-standard),
        opacity var(--sh-duration-fast) var(--sh-ease-standard);
    }

    .sh-pricing-carousel-nav__button:hover:not(:disabled) {
      color: var(--sh-neutral-950);
      background: var(--sh-blue-500);
      border-color: var(--sh-blue-500);
    }

    .sh-pricing-carousel-nav__button:disabled {
      opacity: 0.3;
    }

    .sh-pricing-carousel-nav__status {
      min-width: 4.75rem;
      color: var(--sh-white-a55);
      font-family: var(--sh-font-mono);
      font-size: 0.65625rem;
      line-height: 1.4;
      text-align: center;
      white-space: nowrap;
    }

    .sh-pricing-section .sh-pricing-grid {
      display: flex;
      width: auto;
      align-items: stretch;
      gap: 0.875rem;
      margin-top: 0.75rem;
      margin-right: calc(var(--sh-page-gutter) * -1);
      padding: 0.5rem 3rem 1.5rem 0.25rem;
      overflow-x: auto;
      overflow-y: hidden;
      cursor: grab;
      overscroll-behavior-inline: contain;
      scroll-padding-left: 0.25rem;
      scroll-snap-type: inline mandatory;
      scrollbar-width: none;
      touch-action: pan-x pan-y;
      -webkit-overflow-scrolling: touch;
    }

    .sh-pricing-section .sh-pricing-grid:active {
      cursor: grabbing;
    }

    .sh-pricing-section .sh-pricing-grid::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }

    .sh-pricing-section .sh-pricing-card {
      min-width: 0;
      flex: 0 0 clamp(
        15.5rem,
        calc(100vw - 5.5rem),
        25rem
      );
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }
  }

  @media (max-width: 640px) {
    .sh-hero--home .sh-hero__title {
      font-size: clamp(2.25rem, 9.3vw, 2.5rem);
      line-height: 1.06;
      letter-spacing: -0.035em;
    }

    .sh-hero--home .sh-hero__lead {
      width: min(100%, 32.5rem);
      margin-top: 1.375rem;
      font-size: 1.0625rem;
      line-height: 1.65;
    }

    .sh-hero--home .sh-hero__actions {
      margin-top: 1.625rem;
    }

    .sh-hero--home .sh-hero__actions .sh-button {
      width: auto;
      min-height: 3rem;
      padding-inline: 2.25rem;
    }

    .sh-hero--home .sh-hero__search {
      margin-top: 2rem;
    }

    .sh-hero--home .sh-hero__trust {
      align-items: center;
      flex-direction: row;
      gap: 0.75rem 1rem;
      margin-top: 1.625rem;
      padding-top: 1.375rem;
    }

    .sh-hero--home .sh-hero__trust-item {
      min-width: 0;
    }

    .sh-hero--home .sh-domain-chips {
      gap: 0.75rem;
      margin-top: 1.25rem;
    }

    .sh-hero--home .sh-domain-chips > li {
      min-width: 0;
      flex: 1 1 calc(50% - 0.75rem);
    }

    .sh-hero--home .sh-domain-chip {
      width: 100%;
      min-width: 0;
      justify-content: space-between;
      gap: 0.625rem;
      padding: 0.75rem 1rem;
    }

    .sh-hero--home .sh-domain-chip__tld {
      font-size: 0.9375rem;
    }

    .sh-hero--home .sh-domain-chip__price {
      font-size: 0.8125rem;
      white-space: nowrap;
    }
  }

  @media (max-width: 480px) {
    .sh-hero--home .sh-search-form {
      align-items: center;
      flex-direction: row;
      gap: 0.5rem;
      padding: 0.5rem 0.5rem 0.5rem 1.25rem;
      border-radius: var(--sh-radius-pill);
    }

    .sh-hero--home .sh-search-form__icon {
      display: grid;
    }

    .sh-hero--home .sh-search-form__input {
      width: auto;
      min-width: 0;
      min-height: 2.75rem;
      flex: 1;
      padding: 0 var(--sh-space-1);
      font-size: 0.96875rem;
    }

    .sh-hero--home .sh-search-form__button {
      width: auto;
      min-height: 2.75rem;
      padding-inline: 0.875rem;
      font-size: 0.9375rem;
    }

    .sh-hero--home .sh-domain-chips > li {
      flex-basis: calc(50% - 0.75rem);
    }
  }

  @media (max-width: 380px) {
    .sh-pricing-carousel-nav {
      align-items: flex-start;
      flex-direction: column;
      gap: 0.75rem;
    }

    .sh-pricing-carousel-nav__controls {
      width: 100%;
      justify-content: space-between;
    }

    .sh-pricing-carousel-nav__status {
      flex: 1;
    }

    .sh-pricing-section .sh-pricing-grid {
      padding-right: 2rem;
    }

    .sh-hero--home .sh-hero__title {
      font-size: clamp(2.125rem, 10.5vw, 2.25rem);
    }

    .sh-hero--home .sh-hero__lead {
      font-size: 1rem;
    }

    .sh-hero--home .sh-search-form {
      padding-left: 0.875rem;
    }

    .sh-hero--home .sh-search-form__icon {
      width: 1.125rem;
      height: 1.125rem;
    }

    .sh-hero--home .sh-search-form__button {
      gap: 0.375rem;
      padding-inline: 0.625rem;
      font-size: 0.875rem;
    }

    .sh-hero--home .sh-domain-chip {
      gap: 0.375rem;
      padding-inline: 0.625rem;
    }

    .sh-hero--home .sh-domain-chip__tld {
      font-size: 0.875rem;
    }

    .sh-hero--home .sh-domain-chip__price {
      font-size: 0.75rem;
    }
  }
}