/* EmbWin Growth Funnel */

.embwin-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.embwin-growth-cta {
  margin: 1.5rem 0 1.75rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(31, 58, 95, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(245, 200, 66, 0.16), rgba(255, 255, 255, 0.9) 42%),
    #fff;
}

.embwin-growth-cta__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b7c;
  font-weight: 700;
}

.embwin-growth-cta__title {
  margin: 0 0 0.4rem;
  font-family: var(--emb-font-display, Fraunces, Georgia, serif);
  font-size: 1.35rem;
  color: #1f3a5f;
}

.embwin-growth-cta__lede,
.embwin-growth-cta__note {
  margin: 0 0 0.85rem;
  color: #334155;
  line-height: 1.45;
}

.embwin-growth-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.embwin-growth-cta__note code {
  font-weight: 700;
  background: rgba(31, 58, 95, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.embwin-shop-strip {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 58, 95, 0.12);
  background: linear-gradient(180deg, #fff, #f4f8fb);
}

.embwin-shop-strip__title {
  margin: 0 0 0.35rem;
  font-family: var(--emb-font-display, Fraunces, Georgia, serif);
  font-size: 1.25rem;
  color: #1f3a5f;
}

.embwin-shop-strip__lede {
  margin: 0 0 0.85rem;
  color: #475569;
}

.embwin-shop-strip__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.embwin-shop-strip__chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 58, 95, 0.16);
  background: #fff;
  color: #1f3a5f !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.92rem;
}

.embwin-shop-strip__chip:hover {
  border-color: #c9a227;
  background: #fff8e6;
}

.embwin-shop-strip__chip--dl {
  background: #1f3a5f;
  color: #fff !important;
  border-color: #1f3a5f;
}

.embwin-shop-strip__admin-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.embwin-gate-email {
  margin: 1.25rem 0;
  padding: 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 58, 95, 0.14);
  background: #fff;
}

.embwin-gate-email__title {
  margin: 0 0 0.35rem;
  font-family: var(--emb-font-display, Fraunces, Georgia, serif);
  font-size: 1.25rem;
  color: #1f3a5f;
}

.embwin-gate-email__lede {
  margin: 0 0 0.85rem;
  color: #475569;
}

.embwin-gate-email__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.embwin-gate-email__form input[type="email"] {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(31, 58, 95, 0.2);
  border-radius: 10px;
}

.embwin-gate-email__skip {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.embwin-stitch-next {
  margin: 1.25rem 0 1.75rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid rgba(31, 58, 95, 0.1);
}

.embwin-stitch-next__title {
  margin: 0 0 0.3rem;
  font-family: var(--emb-font-display, Fraunces, Georgia, serif);
  color: #1f3a5f;
}

.embwin-stitch-next__lede,
.embwin-stitch-next__loading {
  color: #64748b;
  margin: 0 0 0.85rem;
}

.embwin-stitch-next__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.embwin-stitch-next__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 58, 95, 0.12);
  background: #fff;
  text-decoration: none !important;
  color: #1f3a5f !important;
  min-height: 150px;
}

.embwin-stitch-next__card--paid {
  background: linear-gradient(160deg, #fff8e6, #fff);
  border-color: #c9a227;
}

.embwin-stitch-next__media {
  display: block;
  height: 96px;
  background: #e2e8f0 center/cover no-repeat;
}

.embwin-stitch-next__name {
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.embwin-stitch-next__badge {
  display: inline-block;
  margin: 0.45rem 0.65rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #1f3a5f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.embwin-stitch-next__shop {
  margin: 0.95rem 0 0;
}

.embwin-leaderboard__dlmeta {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(31, 58, 95, 0.08);
  color: #1f3a5f;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.embwin-seo-hub__lede {
  color: #475569;
  margin: 0 0 0.85rem;
}

.embwin-seo-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.embwin-seo-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.embwin-seo-hub__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 58, 95, 0.12);
  background: #fff;
  text-decoration: none !important;
  color: #1f3a5f !important;
}

.embwin-seo-hub__media {
  display: block;
  height: 120px;
  background: #e2e8f0 center/cover no-repeat;
}

.embwin-seo-hub__name {
  padding: 0.55rem 0.65rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.embwin-studio-softwall {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  max-width: 320px;
  padding: 0.95rem 1rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(31, 58, 95, 0.16);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.embwin-studio-softwall p {
  margin: 0 0 0.65rem;
  color: #334155;
  line-height: 1.4;
  padding-right: 1.2rem;
}

.embwin-studio-softwall__x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: #64748b;
}

html[data-emb-theme="dark"] .embwin-growth-cta,
html[data-emb-theme="dark"] .embwin-shop-strip,
html[data-emb-theme="dark"] .embwin-gate-email,
html[data-emb-theme="dark"] .embwin-stitch-next,
html[data-emb-theme="dark"] .embwin-studio-softwall {
  background: #15202b;
  border-color: rgba(226, 232, 240, 0.14);
  color: #e2e8f0;
}

html[data-emb-theme="dark"] .embwin-growth-cta__title,
html[data-emb-theme="dark"] .embwin-shop-strip__title,
html[data-emb-theme="dark"] .embwin-gate-email__title,
html[data-emb-theme="dark"] .embwin-stitch-next__title {
  color: #f8fafc;
}

@media (max-width: 640px) {
  .embwin-growth-cta__actions,
  .embwin-seo-hub__actions,
  .embwin-gate-email__form {
    flex-direction: column;
  }
  .embwin-studio-softwall {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
