/* ===========================================
   Hero Section - Main catch copy, features, mockup
   Figma: y=70-800
   =========================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 20px;
  background-image: url('../../images/bg/bg-hero-sp.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===========================================
   Service logo card (speech bubble style)
   Now uses image instead of text
   =========================================== */

.hero__logo-card {
  position: relative;
  width: 100%;
  max-width: 343px;
  margin-bottom: 18px;
}


/* Logo card images */
.hero__logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__logo-img--pc {
  display: none;
}

.hero__logo-img--sp {
  display: block;
}

/* ===========================================
   Catch copy
   Figma: x=26, y=214, center, 18px Bold
   =========================================== */

.hero__catch {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 8px;
}

.hero__catch .marker {
  background: linear-gradient(transparent calc(100% - 24px), rgba(216, 46, 46, 0.2) calc(100% - 24px));
  padding: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* CTA inside hero */
.cta-section--hero {
  margin-top: 50px;
  width: 100%;
  max-width: 500px;
  background: transparent !important;
  background-image: none !important;
}

/* ===========================================
   Sub copy
   =========================================== */

.hero__sub-copy {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 18px;
}

/* ===========================================
   Feature cards container
   =========================================== */

.hero__features {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 343px;
  margin-bottom: 16px;
}

/* Individual feature item (icon + card) */
.hero__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 105px;
}

/* Figma feature icon (3D red circle) - overlaps card top */
.hero__feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: -19px;
  position: relative;
  z-index: 2;
  object-fit: contain;
}

.hero__feature-item .feature-card {
  width: 105px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 4px 8px;
  gap: 2px;
  position: relative;
}

.hero__feature-item .feature-card__label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  line-height: 1.3;
  text-align: center;
}

.hero__feature-item .feature-card__value {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--color-yellow-green);
  line-height: 1.2;
  text-align: center;
}

/* ===========================================
   PC mockup image
   =========================================== */

.hero__mockup {
  width: 100%;
  max-width: 343px;
  display: flex;
  justify-content: center;
}

.hero__mockup-laptop {
  width: 100%;
  position: relative;
}

.hero__mockup-img {
  width: 100%;
  max-width: 343px;
  height: auto;
  border-radius: var(--radius-md);
}

/* Floating trial CTA bar - fixed after hero, hidden by default */
.hero__float-cta {
  display: flex;
  position: fixed;
  right: 10px;
  bottom: 10px;
  flex-direction: column;
  width: 380px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  visibility: hidden;
}
.hero__float-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.hero__float-cta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--color-primary);
  color: var(--color-white);
}
.hero__float-cta-label {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}
.hero__float-cta-remain {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-white);
}
.hero__float-cta-remain-label {
  font-size: 11px;
}
.hero__float-cta-remain-num {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}
.hero__float-cta-remain-num small {
  font-size: 12px;
  margin-left: 2px;
}
.hero__float-cta-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  background: var(--color-white);
}
.hero__float-cta-arrow {
  font-size: 16px;
}

/* Responsive show/hide helpers for feature card text */
.pc-only {
  display: none;
}
.sp-only {
  display: inline;
}

/* ============================================================
   PC (>=768px) — Hero 2-column with laptop on right
   ============================================================ */
@media (min-width: 768px) {
  /* PC hero fixes - toggle sp/pc text */
  .sp-only {
    display: none !important;
  }
  .hero__feature-item .feature-card__label.pc-only,
  .hero__feature-item .feature-card__value.pc-only {
    display: block;
  }

  .hero {
    padding: 0 0 60px;
    background-image: url('../../images/bg/bg-hero.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: transparent;
    position: relative;
    overflow: hidden;
  }

  .hero__inner {
    max-width: 1100px;
    padding: 40px 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    align-items: start;
    column-gap: 40px;
    position: relative;
  }

  /* Logo card - full width at top, image version */
  .hero__logo-card {
    grid-column: 1 / -1;
    max-width: 1100px;
    margin: 0 auto 40px;
  }

  .hero__logo-img--sp {
    display: none;
  }

  .hero__logo-img--pc {
    display: block;
  }

  /* Catch copy - left column */
  .hero__catch {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    line-height: 51px;
    margin-bottom: 20px;
  }

  /* Sub copy - left column */
  .hero__sub-copy {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
    font-size: 26px;
    line-height: 38px;
    margin-bottom: 40px;
  }

  /* Feature cards - left column, row 4 */
  .hero__features {
    grid-column: 1;
    grid-row: 4;
    justify-content: flex-start;
    max-width: none;
    gap: 16px;
    margin-bottom: 0;
  }
  .hero__feature-item {
    flex: 0 0 163px;
  }
  .hero__feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: -26px;
  }
  .hero__feature-item .feature-card {
    width: 163px;
    height: 130px;
    padding: 30px 6px 10px;
  }
  .hero__feature-item .feature-card__label {
    font-size: 18px;
  }
  .hero__feature-item .feature-card__value {
    font-size: 26px;
  }

  /* Laptop mockup - right column, spans rows 2-4 */
  .hero__mockup {
    grid-column: 2;
    grid-row: 2 / 5;
    max-width: none;
    justify-content: center;
    align-self: center;
  }
  .hero__mockup-laptop {
    width: 100%;
    max-width: 562px;
  }
  .hero__mockup-img {
    max-width: 562px;
  }

  /* CTA inside hero - full width centered */
  .cta-section--hero {
    grid-column: 1 / -1;
    margin-top: 50px;
    max-width: 500px;
    justify-self: center;
    background: transparent;
    background-image: none;
    padding: 0;
    z-index: 3;
  }

  /* Client logos overlap */
  .clients {
    position: relative;
    margin-top: -60px;
    background: transparent;
    padding: 0 0 20px;
    z-index: 2;
  }
}
