/* home2 — Bloom "How it works" section (trybloom.ai) */

/* Temporarily hidden — re-enable by removing this rule */
html[data-truffl-page="home2"] .below .bloom-hiw {
  display: none !important;
}

html[data-truffl-page="home2"] .bloom-hiw-sep.bloom-pricing-sep {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

html[data-truffl-page="home2"] .bloom-hiw-sep + .below {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

html[data-truffl-page="home2"] .bloom-hiw-sep {
  display: block;
  box-sizing: border-box;
  border: 0;
  height: 1px;
  margin: clamp(3rem, 6vw, 5rem) auto clamp(2.5rem, 5vw, 4rem);
  max-width: var(--hero-bloom-container, 1300px);
  width: calc(
    100% - max(var(--hero-bloom-inset-x, 1.5rem), env(safe-area-inset-left, 0px))
      - max(var(--hero-bloom-inset-x, 1.5rem), env(safe-area-inset-right, 0px))
  );
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 8%,
    rgba(164, 128, 174, 0.28) 50%,
    rgba(255, 255, 255, 0.1) 92%,
    transparent 100%
  );
  opacity: 1;
}

html[data-truffl-page="home2"] .bloom-hiw {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 7vw, 5rem) 0 6rem;
  background: linear-gradient(
    180deg,
    rgba(21, 21, 30, 0.35) 0%,
    transparent min(12rem, 18%)
  );
}

html[data-truffl-page="home2"] .below .bloom-hiw {
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: none;
}

html[data-truffl-page="home2"] .below .bloom-hiw__header {
  text-align: center;
}

html[data-truffl-page="home2"] .below .bloom-hiw__title {
  margin-top: 0;
}

html[data-truffl-page="home2"] .bloom-hiw__inner {
  max-width: var(--hero-bloom-container, 1300px);
  margin: 0 auto;
  padding-inline: max(var(--hero-bloom-inset-x, 1.5rem), env(safe-area-inset-left, 0px))
    max(var(--hero-bloom-inset-x, 1.5rem), env(safe-area-inset-right, 0px));
}

html[data-truffl-page="home2"] .bloom-hiw__kicker {
  margin: 0;
  font-family: ui-monospace, "Geist Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(164, 128, 174, 0.7);
}

html[data-truffl-page="home2"] .bloom-hiw__title {
  margin: 1rem 0 0;
  font-family: var(--hero-bloom-font-display, Georgia, serif);
  /* Bloom HIW: text-4xl sm:text-5xl — one step below hero text-5xl sm:text-6xl */
  font-size: 2.25rem;
  font-weight: 400 !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92) !important;
  text-wrap: balance;
}

@media (min-width: 640px) {
  html[data-truffl-page="home2"] .bloom-hiw__title {
    font-size: 3rem;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__title span {
  color: #a1a1aa;
}

html[data-truffl-page="home2"] .bloom-hiw__steps {
  list-style: none;
  margin: 4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  html[data-truffl-page="home2"] .bloom-hiw__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__step {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

html[data-truffl-page="home2"] .bloom-hiw__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0f;
}

html[data-truffl-page="home2"] .bloom-hiw__visual-inner {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #f6f6f5;
}

html[data-truffl-page="home2"] .bloom-hiw__visual-inner--video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
}

html[data-truffl-page="home2"] .bloom-hiw__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

html[data-truffl-page="home2"] .bloom-hiw__marquee-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  width: 100%;
  padding: 0.75rem;
}

@media (min-width: 640px) {
  html[data-truffl-page="home2"] .bloom-hiw__marquee-grid {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__marquee-col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  html[data-truffl-page="home2"] .bloom-hiw__marquee-col {
    display: flex;
    align-items: center;
    height: auto;
    width: 100%;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__marquee-viewport {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  html[data-truffl-page="home2"] .bloom-hiw__marquee-viewport {
    width: 100%;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__marquee-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: max-content;
  padding-top: 1rem;
  animation: bloom-hiw-marquee-ttb var(--bloom-hiw-duration, 72s) linear infinite;
  animation-delay: var(--bloom-hiw-delay, 0s);
}

@media (min-width: 640px) {
  html[data-truffl-page="home2"] .bloom-hiw__marquee-track {
    flex-direction: row;
    gap: 2rem;
    padding-top: 0;
    padding-left: 1rem;
    animation-name: bloom-hiw-marquee-ltr;
  }
}

@keyframes bloom-hiw-marquee-ttb {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes bloom-hiw-marquee-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-truffl-page="home2"] .bloom-hiw__marquee-track {
    animation: none;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__file-card {
  display: flex;
  aspect-ratio: 4 / 3;
  width: 5rem;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding-inline: 0.75rem;
}

@media (min-width: 640px) {
  html[data-truffl-page="home2"] .bloom-hiw__file-card {
    width: 7rem;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__file-card svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #525252;
  flex-shrink: 0;
}

html[data-truffl-page="home2"] .bloom-hiw__file-card span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: ui-monospace, "Geist Mono", monospace;
  font-size: 0.75rem;
  color: #737373;
}

html[data-truffl-page="home2"] .bloom-hiw__tag-card {
  display: flex;
  width: 5rem;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid #e6d1fa;
  background: #fdfcff;
  padding: 0.5rem;
  aspect-ratio: 1;
}

@media (min-width: 640px) {
  html[data-truffl-page="home2"] .bloom-hiw__tag-card {
    width: auto;
    height: 5rem;
    aspect-ratio: auto;
    min-width: 5rem;
    padding-inline: 0.5rem;
  }

  html[data-truffl-page="home2"] .bloom-hiw__tag-card--tall {
    aspect-ratio: 9 / 16;
    height: 5rem;
    width: auto;
  }
}

html[data-truffl-page="home2"] .bloom-hiw__tag-card svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #cba9e5;
  flex-shrink: 0;
}

html[data-truffl-page="home2"] .bloom-hiw__tag-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-family: ui-monospace, "Geist Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
}

html[data-truffl-page="home2"] .bloom-hiw__meta {
  margin-top: 1.5rem;
}

html[data-truffl-page="home2"] .bloom-hiw__num {
  font-family: ui-monospace, "Geist Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: #a1a1aa;
}

html[data-truffl-page="home2"] .bloom-hiw__step-title {
  margin: 0;
  font-family: var(--hero-bloom-font-display, Georgia, serif);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hero-bloom-text, #fff);
}

html[data-truffl-page="home2"] .bloom-hiw__step-desc {
  margin: 0.75rem 0 0;
}

html[data-truffl-page="home2"] .bloom-hiw .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
