/* Bold hero (partials/hero-bold.blade.php, hero-bold.js).
   A large brand panel beside the approved hero copy. The Fund panel is visible
   on first paint; hero-bold.js adds the tabs and the slow rotation. */

.hero-bold__nowrap { white-space: nowrap; }

.hero-bold .hero-grid { align-items: stretch; }
.hero-bold .home-hero-intro { align-self: center; }

@media (min-width: 1024px) {
  .hero-bold { padding: 72px 0 88px; }
  .hero-bold .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
  }
}

.hero-bold__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 52px 52px 26px;
  border-radius: 28px;
  color: var(--text-inverse);
  background: radial-gradient(110% 85% at 85% 5%, var(--color-indigo) 0%, var(--color-rich-purple) 48%, var(--surface-purple-deep) 100%);
  box-shadow: var(--shadow-purple), var(--shadow-xl);
}

.hero-bold__stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -28%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(1, 225, 253, 0.28), transparent);
  pointer-events: none;
}

/* Panels share one grid cell so the stage keeps the height of the tallest. */
.hero-bold__panels { display: grid; flex: 1; }

.hero-bold__panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* The outgoing message clears completely before the next one arrives, so two
   cards are never on screen together. */
.hero-bold.is-enhanced .hero-bold__panel {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease-in, transform 180ms ease-in, visibility 0s linear 180ms;
}

.hero-bold.is-enhanced .hero-bold__panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease-out 220ms, transform 600ms var(--ease-out-expo) 220ms, visibility 0s linear 220ms;
}

/* First paint after the script runs: no transitions, so nothing fades out on load. */
.hero-bold.is-instant .hero-bold__panel { transition: none !important; }

.hero-bold__kicker {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-purple-300);
}

.hero-bold__line {
  margin: 12px 0 0;
  max-width: 18ch;
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* The highlighted phrase always stays on one line. */
.hero-bold__line span { color: var(--color-electric-blue); white-space: nowrap; }

.hero-bold__card {
  display: grid;
  gap: 14px;
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.hero-bold__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}

.hero-bold__status {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-electric-blue);
  color: var(--color-rich-purple);
  font-size: 13px;
}

.hero-bold__track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-purple-100);
  overflow: hidden;
}

.hero-bold__track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-indigo), var(--color-electric-blue));
  transform-origin: left;
}

.hero-bold__card-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Every card shares one shape: a single row of chips (or the funding bar), one line, one link. */
.hero-bold__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-bold__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-purple-tint);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.hero-bold__chips li.is-next {
  padding-right: 12px;
  background: none;
  border: 1px dashed var(--border-strong);
  color: var(--color-indigo);
}

.hero-bold__chips .hero-bold__tick { width: 20px; height: 20px; font-size: 11px; }

.hero-bold__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-blue-100);
  color: var(--color-blue-800);
  font-size: 12px;
  font-weight: 700;
}

.hero-bold__chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-purple-tint);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.hero-bold__chip--done {
  background: var(--color-blue-100);
  color: var(--color-blue-800);
}

.hero-bold__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--color-rich-purple);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: gap 200ms var(--ease-out-quart);
}

.hero-bold__more:hover { gap: 10px; }

.hero-bold__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-bold__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.hero-bold__tabs [role="tab"] {
  position: relative;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--color-purple-200);
  font: 500 14px/1 var(--font-primary);
  cursor: pointer;
  transition: color 200ms var(--ease-out-quart), background-color 200ms var(--ease-out-quart);
}

.hero-bold__tabs [role="tab"]:hover { color: var(--color-white); background: rgba(255, 255, 255, 0.08); }

.hero-bold__tabs [role="tab"][aria-selected="true"] { color: var(--color-electric-blue); }

/* Progress line under the selected tab while the messages rotate. */
.hero-bold__tabs [role="tab"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-electric-blue);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-bold__tabs [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }

.hero-bold.is-playing .hero-bold__tabs [role="tab"][aria-selected="true"]::after {
  animation: hero-bold-progress var(--hero-bold-interval, 7s) linear both;
}

.hero-bold__tabs [role="tab"]:focus-visible,
.hero-bold__pause:focus-visible,
.hero-bold__more:focus-visible {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
}

.hero-bold__pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: none;
  color: var(--color-white);
  font-size: 10px;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .hero-bold__stage { padding: 28px 20px 14px; border-radius: 24px; gap: 22px; }
  /* Card follows the message at a fixed distance; any spare height sits above the tabs. */
  .hero-bold__panel { gap: 22px; }
  .hero-bold__line { font-size: 32px; }
  .hero-bold__card { padding: 16px 18px; }
  .hero-bold__controls { gap: 8px; }
  .hero-bold__tabs { flex-wrap: nowrap; gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .hero-bold__tabs::-webkit-scrollbar { display: none; }
  .hero-bold__tabs [role="tab"] { flex: none; padding: 8px 5px; font-size: 13px; }
  .hero-bold__tabs [role="tab"]::after { left: 5px; right: 5px; }
  .hero-bold__pause { width: 28px; height: 28px; }
}

/* The funding bar fills each time the Fund panel shows. Full at rest without motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-bold__panel.is-active .hero-bold__track span { animation: hero-bold-fill 1.6s var(--ease-in-out-quart) 0.4s both; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bold.is-enhanced .hero-bold__panel,
  .hero-bold.is-enhanced .hero-bold__panel.is-active { transition: none; transform: none; }
}

@keyframes hero-bold-fill {
  from { transform: scaleX(0.15); }
  to { transform: scaleX(1); }
}

@keyframes hero-bold-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
