/*
 * Cross-page service-detail visual system.
 *
 * Service-specific art direction remains in each page's visual.css and
 * harmonization.css. This layer only normalizes the shared reading roles.
 */

.visual-page {
  --detail-container: 1120px;
  --detail-visual-container: 1200px;
  --detail-hero-height: 720px;
  --detail-panel-radius: 36px;
  --detail-cta-radius: 30px;
  --detail-section-block-start: 108px;
  --detail-section-block-end: 92px;
}

/* One focused outer frame for all service-detail content and final actions. */
.visual-page .container {
  width: min(var(--detail-container), calc(100% - 64px));
  margin-inline: auto;
}

/* Service-specific story visuals share one intentional 40px bleed per side. */
.visual-page .product-stories,
.visual-page .experience-stage,
.visual-page .operation-stage,
.visual-page .journey-stage,
.visual-page .automation-stage {
  width: min(var(--detail-visual-container), calc(100vw - 64px));
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Standard five-page hero family. Chatbot / Kakao Sync intentionally has none. */
.visual-page .service-hero {
  min-height: var(--detail-hero-height);
}

.visual-page .service-hero__grid {
  min-height: var(--detail-hero-height);
  padding-block: 52px;
}

.visual-page .service-hero h1 {
  max-width: 640px;
  margin-bottom: 10px;
  font-size: clamp(4.15rem, 5.4vw, 5.35rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.visual-page .service-hero__lead {
  max-width: 600px;
  font-size: clamp(1.28rem, 1.8vw, 1.62rem);
  font-weight: 720;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.visual-page .service-hero__support {
  max-width: 560px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.visual-page .service-hero .benefit-list {
  gap: 16px;
  margin-block: 26px 28px;
}

.visual-page .service-hero .benefit-list span {
  font-size: 0.68rem;
}

.visual-page .service-hero .benefit-list strong {
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Standard main-story rhythm without flattening each service's mechanism. */
.visual-page .service-overview,
.visual-page .message-experience,
.visual-page .message-operation,
.visual-page .marketing-flow,
.visual-page .commerce-automation {
  padding-block: var(--detail-section-block-start) var(--detail-section-block-end);
}

.visual-page .section-heading {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: end;
  margin-bottom: 52px;
}

.visual-page .section-heading h1,
.visual-page .section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.75rem, 4.25vw, 4.15rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.062em;
}

.visual-page .section-heading > p {
  max-width: 420px;
  margin: 0 0 7px;
  color: var(--neutral-600);
  font-size: 1rem;
  line-height: 1.7;
}

.visual-page .experience-stage,
.visual-page .operation-stage,
.visual-page .journey-stage,
.visual-page .automation-stage,
.visual-page .chatbot-mechanism,
.visual-page .sync-process {
  border-radius: var(--detail-panel-radius);
  box-shadow: 0 22px 54px rgba(13, 38, 56, 0.09);
}

/* Intentional two-service exception: two independent stories share one page. */
.visual-page .chatbot-section,
.visual-page .sync-section {
  padding-block: var(--detail-section-block-start) var(--detail-section-block-end);
}

/*
 * Keep the first-scene reading rhythm stable regardless of copy height.
 * The 34px offset preserves the current Bizting baseline at desktop widths.
 */
@media (min-width: 901px) {
  .visual-page .service-hero__copy {
    align-self: start;
    margin-top: 34px;
  }
}

/* The dual-service page aligns only its first Chatbot hero to that baseline. */
@media (min-width: 981px) {
  .visual-page .chatbot-section {
    align-items: start;
    padding-top: 86px;
  }
}

/* One final-action family. Page-specific optional secondary actions are preserved. */
.visual-page .access-panel,
.visual-page .contact-panel {
  min-height: 190px;
  margin-top: 72px;
  padding: 44px 48px;
  border: 1px solid var(--service-accent-soft);
  border-radius: var(--detail-cta-radius);
  color: #191f28;
  background:
    radial-gradient(circle at 92% 16%, var(--service-accent-soft), transparent 35%),
    linear-gradient(135deg, #fff 0%, #f7faff 100%);
  box-shadow: 0 18px 48px rgba(13, 38, 56, 0.08);
}

.visual-page .access-panel__label,
.visual-page .contact-panel__label {
  margin: 0 0 8px;
  color: var(--service-accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.visual-page .access-panel > div:first-child > p:not(.access-panel__label),
.visual-page .access-panel > div > p:nth-of-type(2),
.visual-page .contact-panel > div:first-child > p:not(.contact-panel__label) {
  max-width: 710px;
  margin: 0;
  color: #333d4b;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

.visual-page .contact-panel h3 {
  max-width: 760px;
  margin: 0 0 8px;
  color: #191f28;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.35;
}

.visual-page .access-panel__back-link,
.visual-page .contact-panel__back-link {
  color: var(--service-accent-ink);
}

.visual-page .access-panel .button,
.visual-page .contact-panel .button {
  min-width: 176px;
  color: #fff;
  background: var(--website-primary);
  box-shadow: 0 12px 26px rgba(14, 91, 187, 0.16);
}

.visual-page .access-panel__actions {
  display: grid;
  gap: 10px;
  min-width: 205px;
}

.visual-page .access-panel__external {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 18px;
  border-color: var(--service-accent);
  border-style: solid;
  border-width: 1px;
  border-radius: 999px;
  color: var(--service-accent-ink);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 900px) {
  .visual-page .service-hero,
  .visual-page .service-hero__grid {
    min-height: auto;
  }

  .visual-page .service-hero__grid,
  .visual-page .section-heading {
    grid-template-columns: 1fr;
  }

  .visual-page .section-heading {
    gap: 20px;
  }

  .visual-page .section-heading > p {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .visual-page .container {
    width: min(calc(100% - 36px), var(--detail-container));
  }

  .visual-page .product-stories,
  .visual-page .experience-stage,
  .visual-page .operation-stage,
  .visual-page .journey-stage,
  .visual-page .automation-stage {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}

@media (max-width: 720px) {
  .visual-page {
    --detail-panel-radius: 26px;
    --detail-cta-radius: 24px;
    --detail-section-block-start: 74px;
    --detail-section-block-end: 66px;
  }

  .visual-page .service-hero__grid {
    gap: 42px;
    padding-block: 44px 54px;
  }

  .visual-page .service-hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.1rem);
  }

  .visual-page .service-hero__lead {
    font-size: 1.22rem;
  }

  .visual-page .service-hero__lead br {
    display: none;
  }

  .visual-page .section-heading {
    gap: 16px;
    margin-bottom: 34px;
  }

  .visual-page .section-heading h1,
  .visual-page .section-heading h2 {
    font-size: clamp(2.8rem, 13vw, 3.55rem);
  }

  .visual-page .access-panel,
  .visual-page .contact-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 54px;
    padding: 30px 24px;
  }

  .visual-page .access-panel .button,
  .visual-page .contact-panel .button,
  .visual-page .access-panel__actions {
    width: 100%;
    min-width: 0;
  }
}
