/*
 * TBY Homepage Glass CTA + Newsletter Polish v1.1.0
 * Homepage only.
 * Direction: original smoked-glass / editorial system, intentionally NOT the
 * stacked black newsletter block used by the reference site.
 */
body.home,
body.front-page {
  --tby-home-cta-text: #fff;
  --tby-home-cta-glass: rgba(255,255,255,.085);
  --tby-home-cta-border: rgba(255,255,255,.34);
  --tby-home-cta-blur: 16px;

  --tby-home-newsletter-bg: #f2f2ef;
  --tby-home-newsletter-text: #111;
  --tby-home-newsletter-muted: rgba(17,17,17,.50);
  --tby-home-newsletter-line: rgba(17,17,17,.10);
  --tby-home-newsletter-glass: rgba(255,255,255,.58);
  --tby-home-newsletter-button: #111;
  --tby-home-newsletter-button-text: #fff;
}

/* =========================================================
   HERO SHOP CTA — frosted pill + restrained moving highlight
   ========================================================= */
body.home .tby-home-glass-cta,
body.front-page .tby-home-glass-cta {
  box-sizing: border-box !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  width: auto !important;
  min-width: 148px !important;
  min-height: 54px !important;
  padding: 0 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;

  border: 1px solid var(--tby-home-cta-border) !important;
  border-radius: 999px !important;
  background: var(--tby-home-cta-glass) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)) !important;

  -webkit-backdrop-filter: blur(var(--tby-home-cta-blur)) saturate(145%) !important;
  backdrop-filter: blur(var(--tby-home-cta-blur)) saturate(145%) !important;

  color: var(--tby-home-cta-text) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 12px 32px rgba(0,0,0,.12) !important;

  transition: transform .20s ease, border-color .20s ease, background-color .20s ease, box-shadow .20s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.home .tby-home-glass-cta::before,
body.front-page .tby-home-glass-cta::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -140% !important;
  left: -45% !important;
  width: 42% !important;
  height: 380% !important;
  transform: rotate(18deg) !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent) !important;
  opacity: .70 !important;
  transition: left .55s cubic-bezier(.2,.7,.2,1), opacity .25s ease !important;
}

body.home .tby-home-glass-cta *,
body.front-page .tby-home-glass-cta * {
  color: inherit !important;
  background: transparent !important;
}

@media (hover:hover) {
  body.home .tby-home-glass-cta:hover,
  body.front-page .tby-home-glass-cta:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(255,255,255,.50) !important;
    background-color: rgba(255,255,255,.115) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.24),
      inset 0 -1px 0 rgba(0,0,0,.07),
      0 15px 36px rgba(0,0,0,.15) !important;
  }

  body.home .tby-home-glass-cta:hover::before,
  body.front-page .tby-home-glass-cta:hover::before {
    left: 110% !important;
  }
}

body.home .tby-home-glass-cta:active,
body.front-page .tby-home-glass-cta:active {
  transform: scale(.985) !important;
}

/* =========================================================
   NEWSLETTER — light smoked-glass editorial dock
   Deliberately different from a solid-black stacked form.
   ========================================================= */
body.home .tby-home-newsletter-polish,
body.front-page .tby-home-newsletter-polish {
  box-sizing: border-box !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background:
    radial-gradient(700px 300px at 50% -80px, rgba(255,255,255,.98), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f6f6f3 0%, var(--tby-home-newsletter-bg) 100%) !important;
  color: var(--tby-home-newsletter-text) !important;
  border-top: 1px solid rgba(17,17,17,.055) !important;
  border-bottom: 1px solid rgba(17,17,17,.055) !important;
  box-shadow: none !important;
  padding: 66px 24px 72px !important;
}

body.home .tby-home-newsletter-polish::before,
body.front-page .tby-home-newsletter-polish::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  width: 360px !important;
  height: 360px !important;
  right: -210px !important;
  bottom: -235px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.80) !important;
  filter: blur(2px) !important;
}

body.home .tby-home-newsletter-polish h1,
body.home .tby-home-newsletter-polish h2,
body.home .tby-home-newsletter-polish h3,
body.home .tby-home-newsletter-polish h4,
body.home .tby-home-newsletter-polish .elementor-heading-title,
body.front-page .tby-home-newsletter-polish h1,
body.front-page .tby-home-newsletter-polish h2,
body.front-page .tby-home-newsletter-polish h3,
body.front-page .tby-home-newsletter-polish h4,
body.front-page .tby-home-newsletter-polish .elementor-heading-title {
  box-sizing: border-box !important;
  width: min(100%, 760px) !important;
  margin: 0 auto 24px !important;
  color: var(--tby-home-newsletter-text) !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  letter-spacing: .20em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

body.home .tby-home-newsletter-polish h1::after,
body.home .tby-home-newsletter-polish h2::after,
body.home .tby-home-newsletter-polish h3::after,
body.home .tby-home-newsletter-polish h4::after,
body.home .tby-home-newsletter-polish .elementor-heading-title::after,
body.front-page .tby-home-newsletter-polish h1::after,
body.front-page .tby-home-newsletter-polish h2::after,
body.front-page .tby-home-newsletter-polish h3::after,
body.front-page .tby-home-newsletter-polish h4::after,
body.front-page .tby-home-newsletter-polish .elementor-heading-title::after {
  content: "" !important;
  display: block !important;
  width: 28px !important;
  height: 1px !important;
  margin: 14px auto 0 !important;
  background: rgba(17,17,17,.28) !important;
}

body.home .tby-home-newsletter-polish p,
body.home .tby-home-newsletter-polish .elementor-widget-text-editor,
body.front-page .tby-home-newsletter-polish p,
body.front-page .tby-home-newsletter-polish .elementor-widget-text-editor {
  color: var(--tby-home-newsletter-muted) !important;
}

/* The form itself becomes ONE glass dock rather than two reference-style boxes. */
body.home .tby-home-newsletter-form,
body.front-page .tby-home-newsletter-form,
body.home .tby-home-newsletter-polish form,
body.front-page .tby-home-newsletter-polish form {
  box-sizing: border-box !important;
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 8px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;

  border: 1px solid rgba(17,17,17,.10) !important;
  border-radius: 20px !important;
  background: var(--tby-home-newsletter-glass) !important;
  -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.90),
    0 16px 42px rgba(17,17,17,.055) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.home .tby-home-newsletter-form:focus-within,
body.front-page .tby-home-newsletter-form:focus-within,
body.home .tby-home-newsletter-polish form:focus-within,
body.front-page .tby-home-newsletter-polish form:focus-within {
  border-color: rgba(17,17,17,.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 18px 46px rgba(17,17,17,.075) !important;
}

body.home .tby-home-newsletter-email-wrap,
body.front-page .tby-home-newsletter-email-wrap,
body.home .tby-home-newsletter-submit-wrap,
body.front-page .tby-home-newsletter-submit-wrap {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .tby-home-newsletter-polish form p,
body.front-page .tby-home-newsletter-polish form p,
body.home .tby-home-newsletter-form p,
body.front-page .tby-home-newsletter-form p {
  margin: 0 !important;
  padding: 0 !important;
}

body.home .tby-home-newsletter-polish input[type="email"],
body.front-page .tby-home-newsletter-polish input[type="email"],
body.home .tby-home-newsletter-form input[type="email"],
body.front-page .tby-home-newsletter-form input[type="email"] {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 13px !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--tby-home-newsletter-text) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: .045em !important;
  text-transform: none !important;
}

body.home .tby-home-newsletter-polish input[type="email"]::placeholder,
body.front-page .tby-home-newsletter-polish input[type="email"]::placeholder,
body.home .tby-home-newsletter-form input[type="email"]::placeholder,
body.front-page .tby-home-newsletter-form input[type="email"]::placeholder {
  color: rgba(17,17,17,.42) !important;
  opacity: 1 !important;
}

body.home .tby-home-newsletter-polish input[type="submit"],
body.home .tby-home-newsletter-polish button[type="submit"],
body.front-page .tby-home-newsletter-polish input[type="submit"],
body.front-page .tby-home-newsletter-polish button[type="submit"],
body.home .tby-home-newsletter-form input[type="submit"],
body.home .tby-home-newsletter-form button[type="submit"],
body.front-page .tby-home-newsletter-form input[type="submit"],
body.front-page .tby-home-newsletter-form button[type="submit"] {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 178px !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1px solid var(--tby-home-newsletter-button) !important;
  border-radius: 13px !important;
  background: var(--tby-home-newsletter-button) !important;
  color: var(--tby-home-newsletter-button-text) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease !important;
}

@media (hover:hover) {
  body.home .tby-home-newsletter-polish input[type="submit"]:hover,
  body.home .tby-home-newsletter-polish button[type="submit"]:hover,
  body.front-page .tby-home-newsletter-polish input[type="submit"]:hover,
  body.front-page .tby-home-newsletter-polish button[type="submit"]:hover {
    opacity: .92 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px rgba(17,17,17,.12) !important;
  }
}

body.home .tby-home-newsletter-polish input[type="submit"]:active,
body.home .tby-home-newsletter-polish button[type="submit"]:active,
body.front-page .tby-home-newsletter-polish input[type="submit"]:active,
body.front-page .tby-home-newsletter-polish button[type="submit"]:active {
  transform: scale(.985) !important;
}

body.home .tby-home-newsletter-polish .mc4wp-response,
body.front-page .tby-home-newsletter-polish .mc4wp-response {
  width: min(100%, 760px) !important;
  margin: 12px auto 0 !important;
  color: rgba(17,17,17,.62) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  body.home .tby-home-glass-cta,
  body.front-page .tby-home-glass-cta {
    min-width: 138px !important;
    min-height: 50px !important;
    padding: 0 25px !important;
    font-size: 12px !important;
    --tby-home-cta-blur: 15px;
  }

  body.home .tby-home-newsletter-polish,
  body.front-page .tby-home-newsletter-polish {
    padding: 54px 20px 60px !important;
  }

  body.home .tby-home-newsletter-polish h1,
  body.home .tby-home-newsletter-polish h2,
  body.home .tby-home-newsletter-polish h3,
  body.home .tby-home-newsletter-polish h4,
  body.home .tby-home-newsletter-polish .elementor-heading-title,
  body.front-page .tby-home-newsletter-polish h1,
  body.front-page .tby-home-newsletter-polish h2,
  body.front-page .tby-home-newsletter-polish h3,
  body.front-page .tby-home-newsletter-polish h4,
  body.front-page .tby-home-newsletter-polish .elementor-heading-title {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }

  body.home .tby-home-newsletter-form,
  body.front-page .tby-home-newsletter-form,
  body.home .tby-home-newsletter-polish form,
  body.front-page .tby-home-newsletter-polish form {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 7px !important;
    border-radius: 18px !important;
  }

  body.home .tby-home-newsletter-polish input[type="email"],
  body.front-page .tby-home-newsletter-polish input[type="email"],
  body.home .tby-home-newsletter-form input[type="email"],
  body.front-page .tby-home-newsletter-form input[type="email"] {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  body.home .tby-home-newsletter-polish input[type="submit"],
  body.home .tby-home-newsletter-polish button[type="submit"],
  body.front-page .tby-home-newsletter-polish input[type="submit"],
  body.front-page .tby-home-newsletter-polish button[type="submit"],
  body.home .tby-home-newsletter-form input[type="submit"],
  body.home .tby-home-newsletter-form button[type="submit"],
  body.front-page .tby-home-newsletter-form input[type="submit"],
  body.front-page .tby-home-newsletter-form button[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .tby-home-glass-cta,
  body.front-page .tby-home-glass-cta,
  body.home .tby-home-glass-cta::before,
  body.front-page .tby-home-glass-cta::before,
  body.home .tby-home-newsletter-polish form,
  body.front-page .tby-home-newsletter-polish form,
  body.home .tby-home-newsletter-polish input[type="submit"],
  body.home .tby-home-newsletter-polish button[type="submit"],
  body.front-page .tby-home-newsletter-polish input[type="submit"],
  body.front-page .tby-home-newsletter-polish button[type="submit"] {
    transition: none !important;
  }
}
