/* Marketing detail pages share the home page's outer frame and palette. */
.marketing-detail-page {
  --detail-ink: #0f1424;
  --detail-muted: #47576a;
  --detail-accent: #087a69;
  --detail-border: #dce4ee;
  margin: 0;
  background: #f7f8ff;
  color: var(--detail-ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.marketing-detail-page .landing-frame {
  padding-bottom: 0;
}

.marketing-detail-page .landing-header {
  background: #f7f8ff;
}

.marketing-detail-page .home-footer {
  margin-bottom: 0;
}

.marketing-detail-page .detail-hero {
  display: grid;
  justify-items: start;
  padding: clamp(1.75rem, 6vw, 5.5rem);
  border: 1px solid var(--detail-border);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  text-align: left;
  background: radial-gradient(ellipse at 92% 8%, #d8f9ed 0, transparent 60%), #fff;
}

.marketing-detail-page .detail-hero > .eyebrow {
  margin: 0;
}

.marketing-detail-page .detail-hero h1 {
  max-width: 23ch;
  margin: 0.5rem 0 1rem;
  color: var(--detail-ink);
  font-size: clamp(2.125rem, 5.1vw, 4.625rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.marketing-detail-page .detail-hero p:not(.eyebrow) {
  max-width: 55ch;
  margin: 0;
  color: var(--detail-muted);
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.marketing-detail-page .eyebrow {
  color: var(--detail-accent);
}

.marketing-detail-page .detail-action {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--detail-ink);
  color: white;
  font-weight: 700;
}

.marketing-detail-page .detail-action:hover {
  background: #25374b;
}

.marketing-detail-page a:focus-visible,
.marketing-detail-page button:focus-visible {
  outline: 2px solid var(--detail-accent);
  outline-offset: 4px;
}

.marketing-detail-page .section {
  padding-block: clamp(2.5rem, 7vw, 6rem);
  padding-inline: 0;
}

.marketing-detail-page .section h2,
.marketing-detail-page .process-summary h2,
.marketing-detail-page .result-section h2 {
  color: var(--detail-ink);
  text-wrap: balance;
}

.marketing-solution .steps article,
.marketing-solution .steps article.reverse {
  gap: clamp(1rem, 3.5vw, 3rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
  border-color: var(--detail-border);
}

.marketing-solution .steps article:first-child {
  padding-top: 0;
}

.marketing-solution .steps article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.marketing-solution .step-visual {
  height: clamp(13rem, 60vw, 20rem);
  border-radius: 1.5rem;
  background: radial-gradient(ellipse at center, #fff 8%, #e0f7ef 85%);
}

.marketing-solution .measurement-step .step-visual {
  height: clamp(10rem, 52vw, 17rem);
}

.marketing-solution .step-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(0.875rem, 2.25vw, 1.5rem);
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgb(25 57 71 / 12%));
}

.marketing-solution .step-copy {
  min-width: 0;
}

.marketing-solution .step-copy > .eyebrow {
  margin-bottom: 0.75rem;
}

.marketing-solution .step-copy h2 {
  margin-bottom: 0.875rem;
}

.marketing-solution .measurement-step .step-details > :last-child {
  grid-column: 1 / -1;
}

.marketing-solution .step-details > div {
  justify-content: flex-start;
}

.marketing-solution .step-details > div,
.marketing-solution .step-example {
  background: #fff;
  border-color: var(--detail-border);
}

@media (min-width: 801px) {
  .marketing-solution .steps article {
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    align-items: stretch;
  }

  .marketing-solution .steps article.reverse {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  }

  .marketing-solution .step-visual,
  .marketing-solution .measurement-step .step-visual {
    height: auto;
  }
}

@media (min-width: 1120px) {
  .marketing-solution .measurement-step .step-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketing-solution .measurement-step .step-details > :last-child {
    grid-column: auto;
  }
}

.marketing-solution .step-details span,
.marketing-solution .step-example small {
  color: var(--detail-accent);
  font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.marketing-solution .step-details b {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
}

.marketing-solution .step-example strong {
  color: var(--detail-ink);
  font-size: clamp(1.125rem, 1.65vw, 1.375rem);
}

.marketing-solution .step-example p {
  color: var(--detail-muted);
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
}

.marketing-solution .example-2 small {
  color: #315ca7;
}

.marketing-solution .example-3 small {
  color: #5943a5;
}

.marketing-detail-page .process-summary,
.marketing-detail-page .result-section,
.marketing-detail-page .coach-timing {
  border-radius: clamp(1rem, 2.5vw, 1.75rem);
  background: #e8f7f1;
  color: var(--detail-ink);
}

.marketing-detail-page .process-summary {
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.4rem, 5vw, 3.5rem);
}

.marketing-detail-page .result-section,
.marketing-detail-page .coach-timing {
  margin-inline: auto;
  padding: clamp(1.35rem, 4vw, 3.25rem);
}

.marketing-detail-page .result-section > div:first-child {
  padding-inline: 0;
}

.marketing-health-data .result-section {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.marketing-health-data .result-content {
  padding-inline: 0;
}

.marketing-health-data .measurement-summary strong {
  white-space: nowrap;
}

.marketing-health-data .measurement-summary p {
  color: #b7c7d5;
  font-size: 0.875rem;
  line-height: 1.55;
}

.marketing-detail-page .coach-timing {
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem 2rem;
  background: white;
  border: 1px solid var(--detail-border);
}

.marketing-detail-page .coach-timing p {
  color: var(--detail-muted);
}

.marketing-detail-page .source-grid article,
.marketing-detail-page .area-grid div {
  min-height: auto;
  background: #fff;
  border: 1px solid var(--detail-border);
}

.marketing-detail-page .source-grid b {
  margin-top: 0.8rem;
}

.marketing-detail-page .plan-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 40%);
}

.marketing-detail-page .plan-hero-image {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  width: 100%;
  height: auto;
  margin: 0;
  min-width: 0;
}

.marketing-detail-page .plan-hero-image img {
  max-width: 100%;
  max-height: 24rem;
  height: auto;
}

.marketing-detail-page .plan-card,
.marketing-detail-page .terms-list article {
  border-color: var(--detail-border);
}

@media (max-width: 800px) {
  .marketing-health-data .result-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .marketing-detail-page .plan-detail-hero,
  .marketing-detail-page .coach-timing {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-detail-page .plan-hero-image {
    grid-column: 1;
    grid-row: 4;
    margin-top: 1rem;
  }

  .marketing-detail-page .detail-hero h1 br,
  .marketing-detail-page .detail-hero p br {
    display: none;
  }
}

@media (max-width: 480px) {
  .marketing-health-data .measurement-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}
