/* ENUMARA — Homepage hero Tabler / site-card alignment (P82)
   HOME-only overlay. Brand palette from logo mark (#1d6fd8 → #0ea5e9).
   Keeps 10px card radius; equal-aligned notify cards; controlled depth. */

body.enumara-public-preview-home {
  --enumara-hero-brand: #1d6fd8;
  --enumara-hero-brand-deep: #0f52b4;
  --enumara-hero-brand-mid: #1863c4;
  --enumara-hero-brand-sky: #0ea5e9;
  --enumara-hero-brand-sky-soft: rgba(14, 165, 233, 0.34);
  --enumara-hero-radius: var(--enumara-card-radius, 10px);
  --enumara-hero-radius-sm: var(--enumara-card-radius-sm, 8px);
  --enumara-hero-shadow:
    0 1px 2px rgba(11, 63, 148, 0.08),
    0 12px 32px rgba(29, 111, 216, 0.22);
  --enumara-hero-border: rgba(125, 198, 255, 0.42);
  --enumara-hero-notify-border: rgba(190, 207, 226, 0.95);
  --enumara-hero-notify-shadow:
    0 1px 2px rgba(24, 36, 51, 0.04),
    0 4px 14px rgba(24, 36, 51, 0.08);
  --enumara-hero-notify-min-h: 3.85rem;
  --enumara-hero-stream-gap: 0.5rem;
}

/* Shell: logo-family blues (not near-black navy), site-card radius */
body.enumara-public-preview-home .enumara-p58-hero .enumara-p58-hero__surface,
body.enumara-public-preview-home .enumara-p58-hero .enumara-p58-hero__surface.enumara-card {
  border-radius: var(--enumara-hero-radius) !important;
  border: 1px solid var(--enumara-hero-border) !important;
  background-color: var(--enumara-hero-brand-mid) !important;
  background-image:
    radial-gradient(ellipse 72% 78% at 92% 12%, var(--enumara-hero-brand-sky-soft) 0%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 8% 88%, rgba(29, 111, 216, 0.38) 0%, transparent 62%),
    linear-gradient(
      128deg,
      var(--enumara-hero-brand-deep) 0%,
      var(--enumara-hero-brand-mid) 42%,
      var(--enumara-hero-brand) 72%,
      #1496d6 100%
    ) !important;
  box-shadow: var(--enumara-hero-shadow) !important;
  min-height: 0;
  color: #f4f9ff;
}

/* Thin top highlight / inner light edge (pseudo via box-shadow inset) */
body.enumara-public-preview-home .enumara-p58-hero .enumara-p58-hero__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 32%,
    transparent 58%
  );
}

body.enumara-public-preview-home .enumara-p58-hero__grid-bg {
  opacity: 0.42;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.22) 1.15px, transparent 1.35px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 18px 18px, 26px 26px, 26px 26px;
  background-position: 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 78% 72% at 78% 40%, #000 16%, transparent 76%);
}

body.enumara-public-preview-home .enumara-p58-hero__glow {
  inset: -12% -6% auto auto;
  width: min(420px, 52vw);
  height: min(420px, 52vw);
  opacity: 0.72;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.4) 0%,
    rgba(29, 111, 216, 0.16) 42%,
    rgba(29, 111, 216, 0) 72%
  );
}

body.enumara-public-preview-home .enumara-p58-hero__inner {
  position: relative;
  z-index: 1;
  gap: 1.35rem;
  padding: 1.35rem 1.25rem;
}

/* Typography */
body.enumara-public-preview-home .enumara-p58-hero__kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--enumara-hero-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #f2f8ff;
  line-height: 1.2;
}

body.enumara-public-preview-home .enumara-p58-hero__title {
  margin: 0 0 0.72rem;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  line-height: 1.16;
  font-weight: 720;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(8, 40, 96, 0.18);
}

body.enumara-public-preview-home .enumara-p58-hero__lead {
  margin: 0 0 0.55rem;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.58;
  font-weight: 450;
  color: #f3f8ff;
}

body.enumara-public-preview-home .enumara-p58-hero__note {
  margin: 0 0 1.05rem;
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #d5e8fb;
}

body.enumara-public-preview-home .enumara-p58-hero__note-links a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  font-weight: 600;
}

body.enumara-public-preview-home .enumara-p58-hero__note-links a:hover {
  color: #e6f5ff;
}

/* Meta chips */
body.enumara-public-preview-home .enumara-p58-hero__chip-bar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.enumara-public-preview-home .enumara-p58-hero__chip-sep {
  display: none !important;
}

body.enumara-public-preview-home .enumara-p58-hero__chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.64rem;
  border-radius: var(--enumara-hero-radius-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: #f7fbff;
  white-space: nowrap;
  line-height: 1.2;
}

body.enumara-public-preview-home .enumara-p58-hero__chip-icon {
  color: #bfe7ff;
  flex-shrink: 0;
  opacity: 0.98;
}

/* Right showcase: no toy device; equal stream */
body.enumara-public-preview-home .enumara-p58-hero__device {
  display: none !important;
}

body.enumara-public-preview-home .enumara-p58-hero__visual {
  min-height: 0;
  width: 100%;
  align-self: center;
}

body.enumara-public-preview-home .enumara-p58-hero__stream {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--enumara-hero-stream-gap) !important;
  padding: 0 !important;
  width: 100%;
  margin: 0;
  align-items: stretch;
}

/* Notify cards: identical box — kill stagger offsets */
body.enumara-public-preview-home .enumara-p58-notify,
body.enumara-public-preview-home .enumara-p58-notify--z1,
body.enumara-public-preview-home .enumara-p58-notify--z2,
body.enumara-public-preview-home .enumara-p58-notify--z3,
body.enumara-public-preview-home .enumara-p58-notify--z4 {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--enumara-hero-notify-min-h) !important;
  height: auto;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-inline: 0 !important;
  padding: 0.7rem 0.8rem !important;
  border-radius: var(--enumara-hero-radius) !important;
  border: 1px solid var(--enumara-hero-notify-border) !important;
  background: #ffffff !important;
  box-shadow: var(--enumara-hero-notify-shadow) !important;
  transform: none !important;
  justify-self: stretch;
  box-sizing: border-box;
  color: #182433;
}

body.enumara-public-preview-home .enumara-p58-notify__badge {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: var(--enumara-hero-radius-sm) !important;
}

body.enumara-public-preview-home .enumara-p58-notify__body {
  min-width: 0;
}

body.enumara-public-preview-home .enumara-p58-notify__platform {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #52667a;
  line-height: 1.2;
}

body.enumara-public-preview-home .enumara-p58-notify__text {
  margin: 0.12rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #182433;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.enumara-public-preview-home .enumara-p58-notify__code {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--enumara-hero-brand);
}

/* Mobile */
@media (max-width: 991.98px) {
  body.enumara-public-preview-home .enumara-p58-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.15rem 1rem;
  }

  body.enumara-public-preview-home .enumara-p58-hero__title {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
  }

  body.enumara-public-preview-home .enumara-p58-hero__chip-bar {
    width: 100%;
    justify-content: flex-start;
  }

  body.enumara-public-preview-home .enumara-p58-hero__visual {
    order: 6;
    margin-top: 0.1rem;
    max-width: none;
  }

  body.enumara-public-preview-home .enumara-p58-hero__stream {
    min-height: 0;
  }

  body.enumara-public-preview-home .enumara-p58-notify,
  body.enumara-public-preview-home .enumara-p58-notify--z1,
  body.enumara-public-preview-home .enumara-p58-notify--z2,
  body.enumara-public-preview-home .enumara-p58-notify--z3,
  body.enumara-public-preview-home .enumara-p58-notify--z4 {
    padding: 0.62rem 0.72rem !important;
  }
}

@media (max-width: 419.98px) {
  body.enumara-public-preview-home .enumara-p58-hero__chip-item {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  body.enumara-public-preview-home .enumara-p58-notify__text {
    white-space: normal;
  }
}

/* Desktop: balanced split, cards flush-aligned */
@media (min-width: 992px) {
  body.enumara-public-preview-home .enumara-p58-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 1.75rem;
    padding: 1.65rem 1.75rem;
  }

  body.enumara-public-preview-home .enumara-p58-hero__title {
    font-size: 2.15rem;
  }

  body.enumara-public-preview-home .enumara-p58-hero__lead {
    font-size: 1.02rem;
  }

  body.enumara-public-preview-home .enumara-p58-hero__visual {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  body.enumara-public-preview-home .enumara-p58-notify--z1,
  body.enumara-public-preview-home .enumara-p58-notify--z2,
  body.enumara-public-preview-home .enumara-p58-notify--z3,
  body.enumara-public-preview-home .enumara-p58-notify--z4 {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }
}

@media (min-width: 1200px) {
  body.enumara-public-preview-home .enumara-p58-hero__inner {
    padding: 1.85rem 2rem;
  }
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-search-sort {
  margin-bottom: 0.5rem;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-search-sort .input-icon {
  min-width: 0;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  padding-inline: 0;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle::after {
  display: none;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-menu {
  min-width: 178px;
  max-width: calc(100vw - 2rem);
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-check {
  opacity: 0;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-menu .dropdown-item.is-active .enumara-country-sort-check {
  opacity: 1;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-search-sort {
  position: relative;
  display: block;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-search-sort .input-icon {
  width: 100%;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-search-sort .form-control {
  padding-right: 2.65rem;
  border-radius: 8px !important;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: calc(100% - 2px);
  padding-inline: 0;
  border: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0 7px 7px 0;
  background: transparent;
  color: var(--enumara-muted);
  box-shadow: none;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle:hover,
body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle:focus,
body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle.show {
  background: rgba(6, 111, 209, 0.04);
  color: var(--enumara-primary);
  border-left-color: rgba(6, 111, 209, 0.16);
  box-shadow: none;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle:focus-visible {
  outline: 2px solid rgba(6, 111, 209, 0.25);
  outline-offset: -3px;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-sort-toggle .icon {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-row-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--enumara-muted, #667085);
  flex: 0 0 16px;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-row-chevron__up {
  display: none;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-choice.is-expanded .enumara-country-row-chevron__down {
  display: none;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-country-choice.is-expanded .enumara-country-row-chevron__up {
  display: inline-flex;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-slot {
  display: grid;
  gap: 0.5rem;
  padding: 0 0 0.55rem 16px;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row,
body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-state {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--enumara-border, #d9e2ef);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.62rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.025);
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row:hover,
body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row:focus-visible {
  border-color: var(--enumara-primary, #206bc4);
  background: var(--enumara-surface, #f8fafc);
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__label {
  min-width: 0;
  font-weight: 700;
}
body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__flag {
  width: 28px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__flag img {
  display: block;
  width: 28px;
  height: 20px;
  object-fit: cover;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
  min-width: max-content;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__stock {
  font-size: 0.78rem;
  color: var(--enumara-muted, #667085);
  white-space: nowrap;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__price {
  color: var(--enumara-ink, #101828);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__action {
  display: none;
  justify-self: end;
  color: var(--enumara-primary, #206bc4);
  font-weight: 700;
  white-space: nowrap;
}

body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-state {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: var(--enumara-muted, #667085);
}

@media (max-width: 430px) {
  body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-slot {
    padding-left: 14px;
  }

  body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    row-gap: 0.35rem;
  }

  body.enumara-public-preview [data-guest-purchase="1"] .enumara-operator-row__stock {
    white-space: nowrap;
  }
}
