/**
 * Homepage hero (index.php only) — light product stage.
 * Everything is scoped to .ab-hx so style.css / homepage.css globals can't leak in.
 * The 3D metal card reuses .nx-card3d from css/abutic-nfc-v2.css; the --nx-* tokens
 * it reads are re-declared here because the hero sits outside <main class="nx">.
 */
.ab-hx {
  --hx-ink: #0b1220;
  --hx-ink-2: #334155;
  --hx-muted: #64748b;
  --hx-faint: #94a3b8;
  --hx-line: rgba(15, 23, 42, 0.08);
  --hx-line-2: rgba(15, 23, 42, 0.14);
  --hx-blue: #2563eb;
  --hx-sky: #0ea5e9;
  --hx-grad: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --hx-text-grad: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hx-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --hx-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hx-glass: rgba(255, 255, 255, 0.82);
  --hx-glass-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 0 1px var(--hx-line),
    0 18px 40px -18px rgba(15, 23, 42, 0.28);

  /* tokens read by the shared .nx-card3d component */
  --nx-display: var(--hx-display);
  --nx-ease: var(--hx-ease);
  --nx-grad: var(--hx-grad);
  --nx-ink: var(--hx-ink);
  --nx-ink-2: var(--hx-ink-2);
  --nx-muted: var(--hx-muted);
  --nx-line: var(--hx-line);
  --nx-line-2: var(--hx-line-2);
  --nx-blue: var(--hx-blue);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: var(--hx-body);
  color: var(--hx-ink-2);
  text-align: left;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.ab-hx *,
.ab-hx *::before,
.ab-hx *::after {
  box-sizing: border-box;
}

.ab-hx p,
.ab-hx h1,
.ab-hx h2 {
  margin: 0;
}

.ab-hx .ab-hx__links,
.ab-hx .ab-hx__facts {
  list-style: none;
}

/* ── Atmosphere ── */
.ab-hx__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(14, 165, 233, 0.18), transparent 70%),
    radial-gradient(45% 55% at 2% 30%, rgba(37, 99, 235, 0.10), transparent 70%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 55%, #f4f8fd 100%);
}

.ab-hx__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 75% at 62% 35%, #000 10%, transparent 72%);
  mask-image: radial-gradient(75% 75% at 62% 35%, #000 10%, transparent 72%);
}

.ab-hx__bg::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 60%;
  height: 150%;
  background: linear-gradient(205deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.05) 45%, transparent 75%);
  filter: blur(48px);
  transform: rotate(-10deg);
}

/* ── Layout ── */
.ab-hx__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
  display: grid;
  gap: 2.75rem;
}

.ab-hx__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .ab-hx__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    padding: 4.5rem 1.5rem 0;
  }

  .ab-hx__copy {
    align-items: flex-start;
    text-align: left;
    padding: 1rem 0 2rem;
  }
}

/* ── Copy ── */
.ab-hx__copy > * {
  animation: hx-rise 0.9s var(--hx-ease) both;
  animation-delay: var(--d, 0ms);
}

.ab-hx__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--hx-glass);
  box-shadow: var(--hx-glass-shadow);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hx-ink-2);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--hx-ease), box-shadow 0.25s ease;
}

.ab-hx__pill:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(37, 99, 235, 0.25), 0 18px 40px -18px rgba(37, 99, 235, 0.35);
}

.ab-hx__pill:focus-visible,
.ab-hx__btn:focus-visible,
.ab-hx__proof:focus-visible {
  outline: 2px solid var(--hx-blue);
  outline-offset: 3px;
}

.ab-hx__pill-tag {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--hx-grad);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ab-hx__pill-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-hx__pill-arrow {
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  color: var(--hx-faint);
  transition: transform 0.2s var(--hx-ease), color 0.2s ease;
}

.ab-hx__pill:hover .ab-hx__pill-arrow {
  transform: translateX(2px);
  color: var(--hx-blue);
}

.ab-hx__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--hx-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-blue);
}

.ab-hx__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hx-grad);
}

.ab-hx__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  animation: hx-pulse 2.4s ease-out infinite;
}

body.ab-dot-home .ab-hx .ab-hx__title {
  margin: 1rem 0 1.25rem;
  max-width: 11ch;
  font-family: var(--hx-display);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02 !important;
  letter-spacing: -0.04em;
  color: var(--hx-ink);
  -webkit-text-fill-color: var(--hx-ink);
  background: none;
  text-wrap: balance;
}

body.ab-dot-home .ab-hx .ab-hx__title-accent {
  display: inline-block;
  padding-bottom: 0.06em;
  background: var(--hx-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ab-hx__lead {
  max-width: 33rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--hx-muted);
}

/* Short hero line: phones only (see the max-width: 640px block). */
.ab-hx__lead-short {
  display: none;
}

.ab-hx__lead b {
  font-weight: 600;
  color: var(--hx-ink-2);
}

.ab-hx__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: inherit;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ab-hx__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 3.4rem;
  border-radius: 999px;
  font-family: var(--hx-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--hx-ease), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.ab-hx__btn:active {
  transform: scale(0.97);
}

.ab-hx__btn--primary {
  padding: 0 0.45rem 0 1.5rem;
  gap: 0.85rem;
  background: var(--hx-grad);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 30px -10px rgba(37, 99, 235, 0.7);
}

.ab-hx__btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 18px 36px -12px rgba(37, 99, 235, 0.75);
}

.ab-hx__btn-meta {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-family: var(--hx-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ab-hx__btn--ghost {
  padding: 0 1.4rem;
  background: var(--hx-glass);
  color: var(--hx-ink);
  box-shadow: inset 0 0 0 1px var(--hx-line-2), 0 1px 2px rgba(15, 23, 42, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ab-hx__btn--ghost svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s var(--hx-ease);
}

.ab-hx__btn--ghost:hover {
  color: var(--hx-blue);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35), 0 12px 28px -14px rgba(15, 23, 42, 0.25);
}

.ab-hx__btn--ghost:hover svg {
  transform: translateX(3px);
}

/* ── Social proof ── */
.ab-hx__proof {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: inherit;
  gap: 0.5rem 0.75rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--hx-muted);
  text-decoration: none;
}

.ab-hx__proof b {
  font-weight: 700;
  color: var(--hx-ink);
}

.ab-hx__proof:hover {
  color: var(--hx-ink-2);
}

.ab-hx__avatars {
  display: inline-flex;
  align-items: center;
}

.ab-hx__avatars img,
.ab-hx__avatars i {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(15, 23, 42, 0.12);
}

.ab-hx__avatars img + img,
.ab-hx__avatars img + i {
  margin-left: -0.5rem;
}

.ab-hx__avatars i {
  display: grid;
  place-items: center;
  background: var(--hx-grad);
  color: #fff;
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 700;
}

.ab-hx__stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  letter-spacing: 0;
}

.ab-hx__stars svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ab-hx__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ── Product stage ── */
.ab-hx__visual {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.ab-hx__stage {
  --px: 0px;
  --py: 0px;
  position: relative;
  width: 100%;
  height: clamp(430px, 120vw, 560px);
  perspective: 1400px;
  animation: hx-stage 1.2s var(--hx-ease) 0.15s both;
}

@media (min-width: 1024px) {
  .ab-hx__stage {
    height: 580px;
  }
}

.ab-hx__halo {
  position: absolute;
  inset: 2% -4% 6% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(14, 165, 233, 0.24), rgba(37, 99, 235, 0.08) 55%, transparent 76%);
  filter: blur(18px);
  pointer-events: none;
}

/* phone */
.ab-hx__phone {
  position: absolute;
  top: 0;
  right: 2%;
  width: min(262px, 64%);
  aspect-ratio: 9 / 18.6;
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1f2937, #0b1220 60%, #111827);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.2),
    0 48px 90px -34px rgba(15, 23, 42, 0.55);
  transform: translate(calc(var(--px) * -0.45), calc(var(--py) * -0.45));
  transition: transform 0.5s var(--hx-ease);
  z-index: 1;
}

.ab-hx__phone-island {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  border-radius: 999px;
  background: #050810;
  z-index: 3;
}

.ab-hx__screen {
  position: absolute;
  inset: 9px;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  padding: 48px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--hx-body);
}

.ab-hx__url {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  color: var(--hx-ink-2);
  white-space: nowrap;
}

.ab-hx__url i {
  width: 9px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11'%3E%3Crect x='0.5' y='4.5' width='8' height='6' rx='1.5' fill='%2364748b'/%3E%3Cpath d='M2.5 4.5V3a2 2 0 0 1 4 0v1.5' fill='none' stroke='%2364748b' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ab-hx__cover {
  align-self: stretch;
  height: 66px;
  border-radius: 16px;
  background:
    radial-gradient(80% 100% at 85% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--hx-grad);
}

.ab-hx__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: 0 0 0 3px #fff;
  color: #fff;
  font-family: var(--hx-display);
  font-weight: 800;
  font-size: 16px;
}

.ab-hx__name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-family: var(--hx-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--hx-ink);
}

.ab-hx__verified {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--hx-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/9px no-repeat;
}

.ab-hx__role {
  font-size: 11.5px;
  color: var(--hx-muted);
}

.ab-hx__actions {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}

.ab-hx__actions span {
  padding: 9px 0;
  border-radius: 11px;
  background: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hx-ink);
}

.ab-hx__actions .is-primary {
  background: var(--hx-grad);
  color: #fff;
  animation: hx-btn 3.6s ease-in-out infinite;
}

.ab-hx__links {
  align-self: stretch;
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
}

.ab-hx__links li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--hx-line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hx-ink-2);
  text-align: left;
}

.ab-hx__links i {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #fff;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
}

.ab-hx__links .is-web { background: var(--hx-grad); }
.ab-hx__links .is-in { background: #0a66c2; }
.ab-hx__links .is-cal { background: #0f172a; }

.ab-hx__toast {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: #0b1220;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 28px -12px rgba(15, 23, 42, 0.6);
  opacity: 0;
  animation: hx-toast 5.2s 1.4s var(--hx-ease) infinite;
}

.ab-hx__toast i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* tap ripple where the card meets the phone */
.ab-hx__ripple {
  position: absolute;
  left: 51%;
  top: 68%;
  width: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}

.ab-hx__ripple i {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.55);
  opacity: 0;
  animation: hx-ring 2.8s var(--hx-ease) infinite;
}

.ab-hx__ripple i:nth-child(2) { animation-delay: 0.7s; }
.ab-hx__ripple i:nth-child(3) { animation-delay: 1.4s; }

/* 3D metal card (shared component, repositioned for this stage) */
.ab-hx .nx-card3d {
  position: absolute;
  left: 0;
  bottom: 5%;
  width: min(300px, 64%);
  z-index: 3;
  cursor: default;
  filter: drop-shadow(0 30px 40px rgba(15, 23, 42, 0.22));
}

.ab-hx .nx-card3d__inner {
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) - 10deg)) rotateZ(-7deg);
}

.ab-hx .nx-card3d__shadow {
  display: none;
}

/* floating glass chips */
.ab-hx__chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--hx-glass);
  box-shadow: var(--hx-glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  font-size: 13px;
  line-height: 1.25;
  color: var(--hx-ink-2);
  pointer-events: none;
  transform: translate(var(--px), var(--py));
  transition: transform 0.5s var(--hx-ease);
}

.ab-hx__chip b {
  display: block;
  font-family: var(--hx-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--hx-ink);
  white-space: nowrap;
}

.ab-hx__chip small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--hx-muted);
  white-space: nowrap;
}

.ab-hx__chip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  margin-left: 4px;
}

.ab-hx__chip svg {
  width: 64px;
  height: 26px;
  flex: none;
}

.ab-hx__chip--a {
  top: 3%;
  left: 0;
  animation: hx-bob 6s ease-in-out infinite, hx-chip 0.9s 0.9s var(--hx-ease) both;
}

.ab-hx__chip--b {
  bottom: 4%;
  right: 0;
  animation: hx-bob 7s 0.8s ease-in-out infinite, hx-chip 0.9s 1.2s var(--hx-ease) both;
}

.ab-hx__chip-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hx-grad);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.ab-hx__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ── Facts strip ── */
.ab-hx__facts {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 2.75rem auto 0 !important;
  padding: 0 1.25rem 3.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  animation: hx-rise 0.9s var(--hx-ease) 0.45s both;
}

.ab-hx__facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--hx-glass);
  box-shadow: var(--hx-glass-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ab-hx__facts svg {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.14));
  color: var(--hx-blue);
}

.ab-hx__facts div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.ab-hx__facts strong {
  font-family: var(--hx-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--hx-ink);
}

.ab-hx__facts span {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--hx-muted);
}

@media (min-width: 641px) {
  .ab-hx__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .ab-hx__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 3rem auto 0 !important;
    padding: 0 1.5rem 4.5rem;
  }

  .ab-hx__facts li {
    padding: 1.25rem 1.4rem;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .ab-hx__facts li:first-child { border-radius: 22px 0 0 22px; }
  .ab-hx__facts li:last-child { border-radius: 0 22px 22px 0; }

  .ab-hx__facts::before {
    content: "";
    position: absolute;
    inset: 0 1.5rem 4.5rem;
    border-radius: 22px;
    background: var(--hx-glass);
    box-shadow: var(--hx-glass-shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: -1;
  }

  .ab-hx__facts li + li {
    box-shadow: inset 1px 0 0 var(--hx-line);
  }
}

/* ── Announcement dialog (admin banner message) ── */
.ab-hx-news {
  width: min(28rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  color: var(--hx-ink-2);
  overflow: visible;
}

.ab-hx-news::backdrop {
  background: rgba(11, 18, 32, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ab-hx-news[open] {
  animation: hx-pop 0.45s var(--hx-ease) both;
}

.ab-hx-news__card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(15, 23, 42, 0.1), 0 30px 80px -24px rgba(15, 23, 42, 0.45);
}

.ab-hx-news__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ab-hx-news__head img {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 0.5px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);
}

.ab-hx-news__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-blue);
}

body.ab-dot-home .ab-hx .ab-hx-news__title {
  font-family: var(--hx-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
}

.ab-hx-news__x {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  color: var(--hx-muted);
  cursor: pointer;
}

.ab-hx-news__x svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ab-hx-news__x:hover {
  background: rgba(15, 23, 42, 0.09);
}

.ab-hx-news__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hx-muted);
  overflow-wrap: anywhere;
}

.ab-hx-news__done {
  height: 2.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--hx-grad);
  color: #fff;
  font: inherit;
  font-family: var(--hx-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6);
}

/* ── Small screens ── */
@media (max-width: 1023px) {
  .ab-hx__visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  /* Phones: headline, then the card + phone, then a short line and the buttons,
     so the product is on the first screen. Copy children join the inner column. */
  .ab-hx__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.25rem;
    gap: 0;
  }

  .ab-hx__copy {
    display: contents;
  }

  .ab-hx__pill { order: 1; }
  .ab-hx__eyebrow { order: 2; }
  .ab-hx__title { order: 3; }
  .ab-hx__visual { order: 4; }
  .ab-hx__lead { order: 5; }
  .ab-hx__ctas { order: 6; }
  .ab-hx__proof { order: 7; }

  body.ab-dot-home .ab-hx .ab-hx__title {
    margin: 0.6rem 0 0.5rem;
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 2.6rem);
  }

  .ab-hx__lead-long {
    display: none;
  }

  .ab-hx__lead-short {
    display: inline;
  }

  .ab-hx .ab-hx__lead {
    margin-top: 0;
    text-align: center;
  }

  /* Card + phone at about half size; the fixed height (in zoomed px) always fits the phone. */
  .ab-hx .ab-hx__stage {
    zoom: 0.54;
    height: 500px;
  }

  .ab-hx__lead {
    font-size: 1rem;
  }

  .ab-hx__ctas {
    margin-top: 1rem;
    width: 100%;
    gap: 0.6rem;
  }

  .ab-hx__btn--primary {
    width: 100%;
    justify-content: space-between;
  }

  .ab-hx__btn--ghost {
    width: 100%;
    justify-content: center;
  }

  .ab-hx__proof {
    margin-top: 1.5rem;
    justify-content: center;
    font-size: 0.8125rem;
  }

  .ab-hx__sep {
    display: none;
  }


  .ab-hx__phone {
    right: 0;
    width: min(236px, 62%);
    border-radius: 36px;
  }

  .ab-hx__screen {
    padding-top: 44px;
  }

  .ab-hx .nx-card3d {
    left: 0;
    bottom: 2%;
    width: min(236px, 64%);
  }

  .ab-hx__ripple {
    left: 50%;
    top: 72%;
  }

  .ab-hx__chip--a {
    display: none;
  }

  .ab-hx__chip--b {
    right: 0;
    bottom: 0;
    font-size: 12px;
  }

  .ab-hx__visual {
    padding-bottom: 0;
    margin: 0 0 1.1rem;
  }

  .ab-hx__facts {
    margin-top: 2rem !important;
    padding-bottom: 3.5rem;
    gap: 0.5rem;
  }

  .ab-hx__facts li {
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 16px;
  }

  .ab-hx__facts svg {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.45rem;
  }

  .ab-hx__facts div {
    gap: 0.05rem;
    padding-top: 0;
  }

  .ab-hx__facts strong {
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .ab-hx__facts span {
    font-size: 0.8125rem;
  }
}

/* ── Motion ── */
@keyframes hx-rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes hx-stage {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes hx-chip {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes hx-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

@keyframes hx-pop {
  from { opacity: 0; scale: 0.92; filter: blur(4px); }
  to { opacity: 1; scale: 1; filter: none; }
}

@keyframes hx-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

@keyframes hx-ring {
  0% { opacity: 0; transform: scale(0.25); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.6); }
}

@keyframes hx-toast {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  10%, 48% { opacity: 1; transform: translate(-50%, 0); }
  58%, 100% { opacity: 0; transform: translate(-50%, -10px); }
}

@keyframes hx-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ab-hx *,
  .ab-hx-news[open] {
    animation: none !important;
    transition: none !important;
  }

  .ab-hx__toast,
  .ab-hx__chip {
    opacity: 1;
  }
}
