/* Hero section — Figma node 1:2535 */

.hero {
  position: relative;
  width: 100%;
  background: var(--white);
  border-bottom: 0.5px solid var(--border-color);
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  /* Side padding keeps copy and buttons off the container's border lines on narrow screens */
  padding: 120px 32px;
  border-left-width: 0.5px;
  border-right-width: 0.5px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  width: 100%;
}

.hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px 5px 12px;
  background: var(--white);
  border: 0.5px solid var(--border-color);
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-main);
  letter-spacing: -0.006em;
}

.hero-eyebrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
  transform: rotate(-90deg);
}

.hero-eyebrow-accent {
  position: absolute;
  top: -0.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 0.5px;
  background: url('../assets/hero-eyebrow-accent.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* "Coming Soon on Product Hunt" badge above the CTA buttons: links to the Product Hunt page, in Product Hunt coral. */
.hero-launch-badge {
  --ph: #DA552F;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 4px 4px 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--white), #FFF9F7) padding-box,
    linear-gradient(135deg, rgba(218, 85, 47, 0.55), rgba(218, 85, 47, 0.12) 45%, rgba(218, 85, 47, 0.45)) border-box;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 20px -10px rgba(218, 85, 47, 0.45);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.006em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* One soft shine across the badge shortly after load. */
.hero-launch-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: hero-ph-shine 1.4s ease 1.2s 1 both;
  pointer-events: none;
}

@keyframes hero-ph-shine {
  to { transform: translateX(120%); }
}

.hero-launch-badge-logo {
  flex: none;
  width: 24px;
  height: 24px;
  fill: var(--ph);
}

.hero-launch-badge strong {
  font-weight: 500;
  color: var(--text-main);
}

.hero-launch-badge-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 11px;
  border-radius: 999px;
  background: var(--ph);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.hero-launch-badge-cta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.hero-launch-badge-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-launch-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 26px -10px rgba(218, 85, 47, 0.55);
}

.hero-launch-badge:hover .hero-launch-badge-cta {
  background: #C4461F;
}

.hero-launch-badge:hover .hero-launch-badge-cta svg {
  transform: translate(1px, -1px);
}

.hero-launch-badge:focus-visible {
  outline: 2px solid var(--ph);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-launch-badge,
  .hero-launch-badge-cta,
  .hero-launch-badge-cta svg {
    transition: none;
  }

  .hero-launch-badge::after {
    display: none;
  }

  .hero-launch-badge:hover,
  .hero-launch-badge:hover .hero-launch-badge-cta svg {
    transform: none;
  }
}

/* Very small phones: the badge itself is the link, so the "Notify me" pill can go. */
@media (max-width: 360px) {
  .hero-launch-badge-cta {
    display: none;
  }

  .hero-launch-badge {
    padding-right: 12px;
  }
}

/* The home page H1 holds the eyebrow pill and the title, so the keyword phrase is part of the heading itself */
.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}

.hero-title {
  display: block;
  font-size: 64px;
  line-height: 1.125;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text-main);
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 620px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hero-cta-primary {
  background: var(--text-main);
  color: var(--white);
}

.hero-cta-primary:hover {
  background: #1a1a1a;
}

.hero-cta-secondary {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.hero-cta-secondary:hover {
  background: #f8f9fa;
  border-color: #d1d1d1;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.005em;
  color: #707070;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

@media (max-width: 1024px) {
  .hero-container {
    padding: 88px 32px;
    gap: 40px;
  }

  /* Scales with the screen instead of stepping: ~31px on a 320px phone, ~33px at 375px, 48px from 768px
     (always a step above the 30px phone section headings) */
  .hero-title {
    font-size: clamp(31px, 3.75vw + 19.3px, 48px);
  }
}

@media (max-width: 720px) {
  /* Let the two sentences flow and balance on phones instead of leaving "next." alone on a line.
     Every title keeps a space before its <br> (scripts/build_pages.py), so hiding it never joins two words. */
  .hero-title br {
    display: none;
  }

  .hero-title-lead {
    display: block;
  }

  .hero {
    padding: 0 20px;
  }

  .hero-container {
    padding: 64px 20px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-launch-badge {
    font-size: 12px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
