/* Enterprises hero – Stripe Radar typography + layout */

.ent-hero {
  background: linear-gradient(180deg, #0b1533 0%, #101b42 45%, #0f1738 100%);
  color: #fff;
  overflow: hidden;
  font-family: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

.ent-hero__inner {
  max-width: var(--ent-page-max, 1266px);
  margin: 0 auto;
  padding: 24px var(--ent-content-pad, 16px) 0;
  overflow-x: clip;
}

@media (min-width: 640px) {
  .ent-hero__inner {
    padding: 32px var(--ent-content-pad, 16px) 0;
  }
}

@media (min-width: 940px) {
  .ent-hero__inner {
    padding-top: 40px;
  }
}

/* Headline – img1: white lead + full muted tail (one flowing sentence) */
.ent-hero__copy {
  max-width: 930px;
  margin: 0 auto 32px;
  text-align: center;
  text-wrap: pretty;
}

.ent-hero__headline {
  margin: 0;
  font-family: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}

.ent-hero__headline-em {
  color: #fff;
}

.ent-hero__headline-muted {
  color: #adbdcc;
}

/* Buttons – HDS group centered on desktop, full-width on mobile */
.ent-hero__actions {
  justify-content: center;
  margin-top: 24px;
}

.ent-hero__actions.hds-button-group {
  width: 100%;
}

.ent-hero__actions .hds-button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 500;
}

.ent-hero.hds-mode--dark .ent-hero__actions .hds-button--primary {
  background: #635bff;
  color: #fff;
}

.ent-hero.hds-mode--dark .ent-hero__actions .hds-button--primary:hover {
  background: #5851ea;
}

.ent-hero.hds-mode--dark .ent-hero__actions .hds-button--secondary {
  color: #fff;
  border-color: rgba(123, 126, 255, 0.35);
  background: transparent;
}

.ent-hero.hds-mode--dark .ent-hero__actions .hds-button--secondary:hover {
  border-color: rgba(123, 126, 255, 0.55);
  color: #fff;
}

@media (min-width: 640px) {
  .ent-hero__headline {
    font-size: 1.75rem;
    line-height: 1.07;
    letter-spacing: -0.01em;
  }

  .ent-hero__copy {
    margin-bottom: 40px;
  }

  .ent-hero__actions.hds-button-group {
    width: auto;
  }

  .ent-hero__actions .hds-button {
    flex-grow: 0;
    min-width: 0;
  }
}

@media (min-width: 940px) {
  .ent-hero__headline {
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .ent-hero__copy {
    margin-bottom: 48px;
  }

  .ent-hero__actions {
    margin-top: 32px;
  }
}

/* Stage / graphic – desktop layout from 640px up; scales with container width */
.ent-hero__stage {
  position: relative;
  width: min(100%, 1266px);
  margin: 40px auto 0;
  aspect-ratio: 1266 / 672;
  min-height: 0;
  overflow: hidden;
}

.ent-hero__stage-scaler {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (min-width: 640px) and (max-width: 939px) {
  .ent-hero__stage {
    width: 100%;
    max-width: 100%;
    aspect-ratio: unset;
    overflow: hidden;
    position: relative;
  }

  .ent-hero__stage-scaler {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1266px;
    height: 672px;
    transform: translateX(-50%) scale(0.544);
    transform-origin: top center;
  }

  /* Side panels above checkout so labels never hide under the white card */
  .ent-hero__checkout {
    z-index: 2;
  }

  .ent-hero__chips,
  .ent-hero__fraud-banner,
  .ent-hero__risk {
    z-index: 4;
  }
}

@media (min-width: 640px) and (max-width: 699px) {
  .ent-hero__stage {
    height: calc(672px * 0.442);
  }

  .ent-hero__stage-scaler {
    transform: translateX(-50%) scale(0.442);
  }
}

@media (min-width: 700px) and (max-width: 767px) {
  .ent-hero__stage {
    height: calc(672px * 0.490);
  }

  .ent-hero__stage-scaler {
    transform: translateX(-50%) scale(0.490);
  }
}

@media (min-width: 768px) and (max-width: 819px) {
  .ent-hero__stage {
    height: calc(672px * 0.544);
  }

  .ent-hero__stage-scaler {
    transform: translateX(-50%) scale(0.544);
  }
}

@media (min-width: 820px) and (max-width: 879px) {
  .ent-hero__stage {
    height: calc(672px * 0.584);
  }

  .ent-hero__stage-scaler {
    transform: translateX(-50%) scale(0.584);
  }
}

@media (min-width: 880px) and (max-width: 939px) {
  .ent-hero__stage {
    height: calc(672px * 0.640);
  }

  .ent-hero__stage-scaler {
    transform: translateX(-50%) scale(0.640);
  }
}

@media (min-width: 640px) {
  .ent-hero__stage {
    margin-top: 48px;
  }
}

@media (min-width: 940px) {
  .ent-hero__stage {
    margin-top: 56px;
  }
}

.ent-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 136, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 136, 255, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
}

.ent-hero__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 42%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(125, 136, 255, 0.45) 0%, rgba(224, 33, 138, 0.25) 45%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

.ent-hero__paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ent-hero__path {
  opacity: 0.85;
}

.ent-hero__path-dot {
  filter: drop-shadow(0 0 6px rgba(224, 33, 138, 0.8));
}

/* Left chips */
.ent-hero__chips {
  position: absolute;
  left: 4%;
  top: 18%;
  display: grid;
  gap: 40px;
  z-index: 2;
}

.ent-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 23, 56, 0.92);
  border: 1px solid rgba(125, 136, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  font: 500 0.8125rem/1.2 sohne-var, Inter, sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: calc(100vw - 48px);
}

.ent-hero__chip-icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* Fraud banner */
.ent-hero__fraud-banner {
  position: absolute;
  left: 4%;
  bottom: 16%;
  width: min(220px, 28%);
  padding: 12px 14px;
  background: rgba(15, 23, 56, 0.92);
  border: 1px solid rgba(125, 136, 255, 0.2);
  border-radius: 8px;
  z-index: 2;
}

.ent-hero__fraud-label {
  display: block;
  margin-bottom: 8px;
  font: 600 0.6875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ent-hero__fraud-bar {
  height: 8px;
  border: 1px solid rgba(125, 136, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.ent-hero__fraud-bar span {
  display: block;
  height: 100%;
  width: 88%;
  background: linear-gradient(90deg, #0d1738 0%, #e0218a 100%);
}

/* Checkout card */
.ent-hero__checkout {
  position: absolute;
  left: 50%;
  top: 47.5%;
  transform: translate(-58%, -50%);
  width: min(340px, 42%);
  padding: 26px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 40px -2px rgba(0, 55, 112, 0.1), 0 5px 20px -2px rgba(0, 59, 137, 0.04);
  color: #0a2540;
  z-index: 3;
}

.ent-hero__checkout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 600 1rem/1 sohne-var, Inter, sans-serif;
}

.ent-hero__checkout-section h3 {
  margin: 0 0 10px;
  font: 600 0.8125rem/1.2 sohne-var, Inter, sans-serif;
  color: #0a2540;
}

.ent-hero__cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ent-hero__product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
  background:
    linear-gradient(145deg, #6b4226 0%, #3d2314 40%, #8b5a3c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.ent-hero__product-name {
  margin: 0 0 4px;
  font: 600 0.9375rem/1.2 sohne-var, Inter, sans-serif;
}

.ent-hero__product-price {
  margin: 0;
  font: 400 0.8125rem/1.4 sohne-var, Inter, sans-serif;
  color: #425466;
}

.ent-hero__checkout-divider {
  height: 1px;
  margin: 18px 0;
  background: #fce8d6;
}

.ent-hero__field,
.ent-hero__field-row .ent-hero__field {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(237, 145, 79, 0.1);
  border: 1px solid rgba(237, 145, 79, 0.35);
  border-radius: 4px;
  font: 400 0.8125rem/1.45 sohne-var, Inter, sans-serif;
  color: #697386;
}

.ent-hero__field--declined {
  color: #df1b41;
  margin-bottom: 8px;
}

.ent-hero__declined-badge {
  position: absolute;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fce8eb;
  color: #df1b41;
  font: 600 0.625rem/1.4 sohne-var, Inter, sans-serif;
}

.ent-hero__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ent-hero__checkout-section + .ent-hero__checkout-section {
  margin-top: 16px;
}

.ent-hero__field--select {
  margin-bottom: 8px;
}

.ent-hero__checkout-foot {
  margin-top: 20px;
  text-align: center;
  font: 400 0.75rem/1 sohne-var, Inter, sans-serif;
  color: #425466;
}

.ent-hero__checkout-foot strong {
  color: #635bff;
  font-weight: 600;
}

/* Risk profile panel */
.ent-hero__risk {
  position: absolute;
  right: 3%;
  top: 21%;
  width: min(300px, 34%);
  padding: 20px;
  background: rgba(15, 23, 56, 0.95);
  border: 1px solid rgba(125, 136, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.ent-hero__risk-label {
  display: block;
  margin-bottom: 8px;
  font: 600 0.625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ent-hero__risk-progress {
  height: 8px;
  border: 1px solid rgba(125, 136, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.ent-hero__risk-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0d1738 0%, #e0218a 100%);
}

.ent-hero__risk-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ent-hero__risk-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 400 0.8125rem/1.3 sohne-var, Inter, sans-serif;
  color: rgba(255, 255, 255, 0.88);
}

.ent-hero__risk-list li + li {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ent-hero__risk-high {
  font: 600 0.8125rem/1 sohne-var, Inter, sans-serif;
  color: #e0218a;
}

.ent-hero__risk-low {
  font: 600 0.8125rem/1 sohne-var, Inter, sans-serif;
  color: #00d4aa;
}

.ent-hero__risk-signals h4 {
  margin: 0 0 10px;
  font: 600 0.8125rem/1.2 sohne-var, Inter, sans-serif;
  color: #fff;
}

.ent-hero__risk-signals ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ent-hero__risk-signals li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 0.8125rem/1.3 sohne-var, Inter, sans-serif;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 639px) {
  .ent-hero__stage-scaler {
    display: contents;
  }

  .ent-hero__inner {
    padding-top: 24px;
  }

  .ent-hero__copy {
    text-align: start;
    margin-bottom: 28px;
  }

  .ent-hero__actions {
    justify-content: stretch;
  }

  .ent-hero__actions .hds-button {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .ent-hero__stage {
    aspect-ratio: auto;
    min-height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .ent-hero__chips {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ent-hero__chips::-webkit-scrollbar {
    display: none;
  }

  .ent-hero__checkout {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin: 0;
  }

  .ent-hero__fraud-banner,
  .ent-hero__risk {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin: 0;
  }

  .ent-hero__paths {
    display: none;
  }
}


/* Enterprise hero sequence: a Stripe-style reference prototype. */
.ent-hero__checkout--scanning,
.ent-hero__chips--scanning,
.ent-hero__risk--scanning,
.ent-hero__fraud-banner--scanning {
  display: none;
}

.ent-hero__checkout {
  top: 47.5%;
  width: min(396px, 42%);
  min-height: 448px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.ent-hero__chips {
  left: 8.7%;
  top: 18%;
  gap: 40px;
}

.ent-hero__chip {
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  background: rgba(8, 15, 47, 0.78);
  box-shadow: none;
}

.ent-hero__fraud-banner {
  left: 8.7%;
  border: 0;
  border-radius: 0;
  background: rgba(8, 15, 47, 0.78);
  box-shadow: none;
}

.ent-hero__risk {
  top: 21%;
  border: 0;
  border-radius: 0;
  background: rgba(15, 26, 67, 0.96);
  box-shadow: none;
}

.ent-hero__risk-pending {
  padding: 2px 7px;
  color: #abb3e8;
  background: rgba(99, 91, 255, 0.12);
  font: 500 0.75rem/1 sohne-var, Inter, sans-serif;
}

.ent-hero__grid {
  mask-image: radial-gradient(ellipse 94% 82% at 50% 42%, #000 18%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .ent-hero.ent-hero--motion-enabled .ent-hero__checkout--scanning,
  .ent-hero.ent-hero--motion-enabled .ent-hero__risk--scanning,
  .ent-hero.ent-hero--motion-enabled .ent-hero__fraud-banner--scanning {
    display: block;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__chips--scanning {
    display: grid;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__checkout,
  .ent-hero.ent-hero--motion-enabled .ent-hero__chips,
  .ent-hero.ent-hero--motion-enabled .ent-hero__risk,
  .ent-hero.ent-hero--motion-enabled .ent-hero__fraud-banner {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__checkout {
    transform: translate(-50%, calc(-50% + 18px)) scale(0.975);
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__chips {
    transform: translate3d(-18px, 0, 0);
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__risk {
    transform: translate3d(18px, 0, 0);
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__fraud-banner {
    transform: translate3d(0, 14px, 0);
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__paths {
    opacity: 0;
    transition: opacity 420ms ease-out;
  }

  .ent-hero.ent-hero--motion-enabled[data-ent-hero-phase="scanning"] .ent-hero__paths,
  .ent-hero.ent-hero--motion-enabled[data-ent-hero-phase="payment"] .ent-hero__paths {
    opacity: 1;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__path {
    stroke-dashoffset: 32;
    animation: ent-hero-path-flow 3.2s linear infinite;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__path-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: ent-hero-node-pulse 2.6s ease-in-out infinite;
  }

  .ent-hero.ent-hero--motion-enabled .is-active {
    visibility: visible;
  }

  .ent-hero.ent-hero--motion-enabled.ent-hero--phase-transition .ent-hero__checkout.is-active {
    animation: ent-hero-card-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .ent-hero.ent-hero--motion-enabled.ent-hero--phase-transition .ent-hero__chips.is-active {
    animation: ent-hero-side-in 460ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
  }

  .ent-hero.ent-hero--motion-enabled.ent-hero--phase-transition .ent-hero__risk.is-active {
    animation: ent-hero-risk-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 190ms both;
  }

  .ent-hero.ent-hero--motion-enabled.ent-hero--phase-transition .ent-hero__fraud-banner.is-active {
    animation: ent-hero-fade-up 460ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-progress span,
  .ent-hero.ent-hero--motion-enabled .ent-hero__fraud-banner.is-active .ent-hero__fraud-bar span {
    transform: scaleX(0);
    transform-origin: left center;
    animation: ent-hero-progress 800ms cubic-bezier(0.16, 1, 0.3, 1) 380ms both;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-list li,
  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-signals li {
    opacity: 0;
    transform: translate3d(10px, 0, 0);
    animation: ent-hero-risk-row 360ms ease-out both;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-list li:nth-child(1) { animation-delay: 440ms; }
  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-list li:nth-child(2) { animation-delay: 510ms; }
  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-list li:nth-child(3) { animation-delay: 580ms; }
  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-list li:nth-child(4) { animation-delay: 650ms; }
  .ent-hero.ent-hero--motion-enabled .ent-hero__risk.is-active .ent-hero__risk-signals li { animation-delay: 720ms; }

  .ent-hero.ent-hero--motion-enabled .ent-hero__glow {
    animation: ent-hero-glow-breathe 5.8s ease-in-out infinite;
  }
}

@keyframes ent-hero-card-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes ent-hero-side-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ent-hero-risk-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ent-hero-fade-up {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ent-hero-risk-row {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ent-hero-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes ent-hero-path-flow {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

@keyframes ent-hero-node-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  45% { opacity: 1; transform: scale(1); }
}

@keyframes ent-hero-glow-breathe {
  0%, 100% { opacity: 0.82; transform: translateX(-50%) scale(0.98); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

@media (max-width: 639px) {
  .ent-hero__checkout {
    width: 100%;
    min-height: 0;
    transform: none;
  }

  .ent-hero.ent-hero--motion-enabled .ent-hero__checkout {
    transform: translate3d(0, 14px, 0) scale(0.985);
  }

  @keyframes ent-hero-card-in {
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
}


/* Stripe Radar reference-baseline alignment: preserve source structure before myWork customization. */
.ent-product-nav {
  height: 56px;
  color: #fff;
  background: #0b1533;
  border-top: 1px solid rgba(125, 136, 255, 0.18);
  border-bottom: 1px solid rgba(125, 136, 255, 0.18);
  font-family: sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ent-product-nav__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1298px;
  margin: 0 auto;
  padding: 0 16px;
}

.ent-product-nav__title,
.ent-product-nav__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.ent-product-nav__title {
  margin-left: 16px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}

.ent-product-nav__links {
  display: none;
  align-items: center;
  gap: 26px;
  margin: 0 16px 0 auto;
  font-size: 0.8125rem;
  font-weight: 450;
}

.ent-product-nav__links a:hover,
.ent-product-nav__links a:focus-visible,
.ent-product-nav__links .is-current {
  color: #fff;
}

.ent-product-nav__divider {
  display: block;
  width: 1px;
  height: 20px;
  background: rgba(125, 136, 255, 0.2);
}

.ent-hero__actions .hds-button--secondary {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(99, 91, 255, 0.62) !important;
}

.ent-hero__risk {
  right: 4.5%;
  width: min(276px, 30%);
  padding: 12px;
}

.ent-hero__risk-head {
  position: relative;
}

.ent-hero__risk-progress-value {
  position: absolute;
  top: 18px;
  right: 0;
  color: rgba(255, 255, 255, 0.86);
  font: 500 0.625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (min-width: 940px) {
  .ent-product-nav {
    height: 72px;
  }

  .ent-product-nav__links {
    display: flex;
  }

  .ent-hero__inner {
    max-width: 1298px;
    padding-top: 35px;
  }

  .ent-hero__stage {
    margin-top: 59px;
  }

  .ent-hero__checkout {
    top: 46.2%;
  }
}


/* Final desktop geometry pass against the Radar reference composition. */
.ent-hero__actions a.hds-button.hds-button--secondary,
.ent-hero__actions a.hds-button.hds-button--secondary::before,
.ent-hero__actions a.hds-button.hds-button--secondary::after {
  background: #0b1533 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.ent-hero__risk-progress {
  margin-top: 3px;
  margin-bottom: 45px;
}

.ent-hero__risk-progress-value {
  top: 41px;
}

@media (min-width: 940px) {
  .ent-hero__checkout {
    top: 45%;
  }

  .ent-hero__chips,
  .ent-hero__fraud-banner {
    left: 9.1%;
  }
}


/* Keep the source-reference secondary CTA independent of the global site button skin. */
.ent-hero__reference-secondary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 147px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(99, 91, 255, 0.66);
  border-radius: 4px;
  background: rgba(11, 21, 51, 0.24);
  color: #fff;
  font: 500 1rem/1 sohne-var, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.ent-hero__reference-secondary:hover,
.ent-hero__reference-secondary:focus-visible {
  border-color: rgba(131, 123, 255, 0.9);
  background: rgba(99, 91, 255, 0.12);
  color: #fff;
}

@media (max-width: 639px) {
  .ent-hero__reference-secondary {
    flex: 1 1 calc(50% - 4px);
    width: auto;
  }
}

/* Mobile animation states share rows instead of reserving duplicate vertical space. */
@media (max-width: 639px) {
  .ent-hero__stage-scaler {
    display: grid;
    grid-template-areas: "signals" "status" "request" "health";
    gap: 12px;
    height: auto;
  }

  .ent-hero__chips { grid-area: signals; }
  .ent-hero__fraud-banner { grid-area: status; }
  .ent-hero__checkout { grid-area: request; }
  .ent-hero__risk { grid-area: health; }

  .ent-hero__chips,
  .ent-hero__fraud-banner,
  .ent-hero__checkout,
  .ent-hero__risk {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .ent-hero__chips { gap: 8px; }
}
