/*
  Clear Bay mobile Home — an isolated mobile layer.
  It deliberately does not change the confirmed desktop Home / Products layouts.
*/

@media (max-width: 900px) {
  .home-page .top-notice { display: none !important; }

  .home-page .sticky-header-shell {
    position: relative !important;
    z-index: 20 !important;
    height: 62px !important;
    background: #fff !important;
  }

  .home-page .site-header {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    grid-template-areas: "menu brand actions" !important;
    min-height: 62px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(4, 64, 91, .08) !important;
  }

  .home-page .site-header .brand {
    grid-area: brand !important;
    justify-self: center !important;
    display: flex !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-page .site-header .brand-mark,
  .home-page .site-header .brand-lockup small,
  .home-page .site-header .nav-links { display: none !important; }

  .home-page .site-header .brand-lockup { display: block !important; }
  .home-page .site-header .brand-word {
    color: #069dcc !important;
    font-family: "Brush Script MT", "Segoe Script", cursive !important;
    font-size: clamp(2rem, 9vw, 2.6rem) !important;
    font-style: italic !important;
    font-weight: 700 !important;
    letter-spacing: -.075em !important;
    line-height: .8 !important;
  }

  .home-page .mobile-menu-button {
    grid-area: menu !important;
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #064869 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }
  .home-page .mobile-menu-button .menu-icon { display: block !important; font-size: 1.7rem !important; line-height: 1 !important; }
  .home-page .mobile-menu-button > span:last-child { display: none !important; }

  .home-page .header-actions {
    grid-area: actions !important;
    display: flex !important;
    align-items: center !important;
    justify-self: end !important;
    gap: 8px !important;
  }
  .home-page .language-picker {
    display: block !important;
    width: 66px !important;
    height: 34px !important;
    overflow: hidden !important;
    border: 1px solid #b7e3f0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.96) !important;
  }
  .home-page .language-picker > span { display: none !important; }
  .home-page .language-picker select {
    display: block !important;
    width: 80px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 16px 0 10px !important;
    color: #064869 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font: 800 .73rem/1 Arial, sans-serif !important;
  }
  .home-page .cart-button {
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    color: #064869 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .home-page .cart-icon { width: 22px !important; height: 22px !important; }
  .home-page .cart-label,
  .home-page .cart-count { display: none !important; }

  .home-page .clear-bay-stage {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fffaf1 !important;
  }
  .home-page .hero {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #79d9f2 !important;
  }
  .home-page .hero-media {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background: #79d9f2 !important;
  }
  .home-page .hero-media .hero-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .home-page .hero::before,
  .home-page .hero::after,
  .home-page .hero-media::after { display: none !important; content: none !important; }

  .home-page .hero-copy {
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 102px 24px 0 !important;
    text-align: center !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .home-page #hero-title {
    width: min(100%, 338px) !important;
    margin: 0 auto !important;
    color: #053f61 !important;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif !important;
    font-size: clamp(1.64rem, 7.1vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -.045em !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.5) !important;
  }
  .home-page .hero-support {
    width: min(100%, 292px) !important;
    margin: 16px auto 0 !important;
    color: #083f5d !important;
    font: 700 .76rem/1.38 Arial, sans-serif !important;
  }
  .home-page .hero-launch-note,
  .home-page .hero-question-note { display: block !important; }
  .home-page .hero-question-note { margin-top: 10px !important; }
  .home-page .hero-question-note::before {
    display: inline-block !important;
    width: 15px !important;
    height: 15px !important;
    margin-right: 6px !important;
    vertical-align: -3px !important;
  }
  .home-page .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(100%, 206px) !important;
    margin: 17px auto 0 !important;
    gap: 9px !important;
  }
  .home-page .hero-actions a {
    width: 100% !important;
    min-height: 36px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    font: 800 .73rem/1 Arial, sans-serif !important;
  }
  .home-page .primary-action { box-shadow: 0 9px 14px rgba(255, 127, 114, .24) !important; }
  .home-page .secondary-action { background: rgba(255,255,255,.94) !important; box-shadow: 0 6px 14px rgba(5,63,97,.1) !important; }
  .home-page .hero-doodle--spark {
    z-index: 4 !important;
    display: grid !important;
    top: 78px !important;
    left: 12% !important;
    width: 28px !important;
    height: 28px !important;
    color: #ffca50 !important;
  }
  .home-page .hero-doodle--spark::after { font-size: 1.9rem !important; }
  .home-page .hero-doodle--heart { display: none !important; }

  /* Mobile intentionally uses a clean straight image edge; the approved desktop wave is untouched. */
  .home-page .hero-wave { display: none !important; }
  .home-page .trust-strip {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 96px) !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 14px 18px !important;
    background: #fffaf1 !important;
    box-shadow: none !important;
  }
  .home-page .trust-strip::before,
  .home-page .trust-strip::after,
  .home-page .trust-item::before,
  .home-page .trust-item::after { display: none !important; content: none !important; }
  .home-page .trust-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 9px 6px !important;
    color: #064869 !important;
    border: 1px solid rgba(111, 207, 236, .4) !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 6px 16px rgba(8, 86, 113, .08) !important;
    text-decoration: none !important;
  }
  .home-page .trust-icon {
    flex: 0 0 auto !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 0 5px !important;
    color: transparent !important;
    font-size: 0 !important;
  }
  /* Desktop's legacy pseudo icons are explicitly suppressed on mobile: each card owns one SVG only. */
  .home-page .trust-icon::before,
  .home-page .trust-icon::after {
    display: none !important;
    content: none !important;
  }
  .home-page .trust-item--products .trust-icon {
    background: #fff0ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23ff8179'%3E%3Ccircle cx='7.4' cy='10.3' r='3.1'/%3E%3Ccircle cx='13.1' cy='6.7' r='3.1'/%3E%3Ccircle cx='18.9' cy='6.7' r='3.1'/%3E%3Ccircle cx='24.6' cy='10.3' r='3.1'/%3E%3Cpath d='M16 14c-4.9 0-8.4 3.5-8.4 7.5 0 3.6 2.8 5 8.4 5s8.4-1.4 8.4-5c0-4-3.5-7.5-8.4-7.5Z'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
  }
  .home-page .trust-item--shipping .trust-icon {
    background: #dff8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%2300a9c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.35'%3E%3Cpath d='M4.5 8h14v12h-14zM18.5 12h4l4 4v4h-8z'/%3E%3Cpath d='M7.5 20h11M9 24a2.4 2.4 0 1 0 0-4.8A2.4 2.4 0 0 0 9 24Zm14 0a2.4 2.4 0 1 0 0-4.8A2.4 2.4 0 0 0 23 24Z'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
  }
  .home-page .trust-item--returns .trust-icon {
    background: #fff3c8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23e5a908' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.7'%3E%3Cpath d='m10 7-5 5 5 5'/%3E%3Cpath d='M5.5 12H17a7 7 0 0 1 0 14h-1'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
  }
  .home-page .trust-item--questions .trust-icon {
    background: #e3f3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%232395df' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'%3E%3Crect x='4.5' y='7.5' width='23' height='17' rx='2.5'/%3E%3Cpath d='m6 10 10 8 10-8'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
  }
  .home-page .trust-item strong {
    display: block !important;
    color: #064869 !important;
    font: 800 .67rem/1.12 Arial, sans-serif !important;
    text-align: center !important;
  }
  .home-page .trust-item small {
    display: block !important;
    margin-top: 3px !important;
    color: #376d83 !important;
    font: 700 .57rem/1.12 Arial, sans-serif !important;
    text-align: center !important;
  }

  /* The mobile visual contract ends after quick links; desktop content remains untouched. */
  .home-page main > section:not(.clear-bay-stage),
  .home-page main > .clear-bay-stage ~ section { display: none !important; }

  .home-page .clear-bay-footer {
    margin: 0 !important;
    padding: 70px 20px 0 !important;
    color: #f8fdff !important;
    background: linear-gradient(158deg, #21b7d2 0%, #078eb2 53%, #067b9d 100%) !important;
    text-align: left !important;
  }
  .home-page .clear-bay-footer::before {
    top: -1px !important;
    height: 58px !important;
    background: url("../brand/clear-bay-footer-top-wave.svg") center top / 100% 100% no-repeat !important;
  }
  .home-page .clear-bay-footer__inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 18px !important;
    padding-bottom: 20px !important;
  }
  .home-page .clear-bay-footer__brand {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    text-align: center !important;
  }
  .home-page .clear-bay-footer__brand .brand-word { font-size: 2.55rem !important; }
  .home-page .clear-bay-footer__brand small { margin-left: 0 !important; font-size: .62rem !important; }
  .home-page .clear-bay-footer__group { gap: 7px !important; }
  .home-page .clear-bay-footer__group strong,
  .home-page .clear-bay-footer__contact strong { margin-bottom: 2px !important; font-size: .62rem !important; }
  .home-page .clear-bay-footer a:not(.clear-bay-footer__brand) { font-size: .7rem !important; }
  .home-page .clear-bay-footer__contact { grid-column: 1 / -1 !important; gap: 4px !important; }
  .home-page .clear-bay-footer__contact a { font-size: .68rem !important; }
  .home-page .clear-bay-footer__legal {
    padding: 13px 0 16px !important;
    font-size: .62rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }
  .home-page .clear-bay-footer__disclaimer {
    max-width: 290px !important;
    margin: 0 auto 8px !important;
    color: rgba(255,255,255,.86) !important;
    font-size: .6rem !important;
  }
}

@media (min-width: 430px) and (max-width: 900px) {
  .home-page .hero { height: auto !important; min-height: 0 !important; aspect-ratio: 3 / 4 !important; }
  .home-page .hero-copy { padding-top: 113px !important; }
  .home-page #hero-title { width: min(100%, 420px) !important; font-size: 2rem !important; }
  .home-page .trust-strip {
    grid-template-rows: repeat(2, 104px) !important;
    gap: 12px !important;
    padding: 14px 20px 22px !important;
  }
  .home-page .trust-item { border-radius: 17px !important; }
}

@media (min-width: 901px) {
  .clear-bay-footer__disclaimer { display: none; }
}
