/* Homepage refinement. Keep other marketing pages intact. */
main#top > section > .section-shell,
main#top > .section-shell {
  width: min(1248px, 90%);
}

/* Retain the narrower FAQ reading column. */
#faq > .section-shell { max-width: 860px; }

.site-header nav a { color: #40566a; }
@media (min-width: 1061px) {
  .site-header nav a { font-size: 15px; }
}

.centered-hero .hero-copy { max-width: 880px; }
.centered-hero .hero-lede {
  max-width: 740px !important;
  color: #4c6373;
}
.hero-copy .launch-note { font-size: 14px; color: #526478; }

@media (min-width: 701px) {
  .brand-hero.centered-hero {
    padding: clamp(44px, 3.5vw, 52px) 0 52px !important;
  }
  .centered-hero h1 { margin-bottom: 28px; }
  .centered-hero .hero-lede { margin-bottom: 28px; }
  .hero-copy .launch-note { margin-top: 18px; }
}

#platform.platform-intro,
#workflow.workflow-section,
#use-cases.use-cases-section,
#faq.faq-section,
#about.about-section { padding-block: 64px; }

#platform .section-intro { margin-bottom: 32px; }
#platform .value-grid article { padding-block: 28px; }
#platform .section-intro > p,
#platform .value-grid p,
#workflow .section-intro > p,
#workflow .journey-step p,
#use-cases .section-intro > p,
#use-cases .use-case-card p:not(.eyebrow),
#use-cases .use-case-note { color: #526478; }

@media (min-width: 981px) {
  #platform .section-intro,
  #workflow .section-intro,
  #use-cases .section-intro { column-gap: 48px; }
  #platform .section-intro h2,
  #workflow .section-intro h2,
  #use-cases .section-intro h2 { font-size: clamp(34px, 4vw, 48px); }
}

@media (max-width: 980px) {
  main#top > section > .section-shell,
  main#top > .section-shell { width: calc(100% - 40px); }
}
@media (max-width: 820px) {
  #platform.platform-intro,
  #workflow.workflow-section,
  #use-cases.use-cases-section,
  #faq.faq-section,
  #about.about-section { padding-block: 48px; }
}
@media (max-width: 620px) {
  main#top > section > .section-shell,
  main#top > .section-shell { width: calc(100% - 32px); }
  #platform .value-grid article { padding-block: 24px; }
}

/* Fit the shorter homepage copy without changing the established layout. */
#use-cases .use-case-card ol { margin-bottom: 0; }
#pricing .commonway-plan .plan-description { margin: 12px 0 16px; }
body:not(.journey-page) #pricing .commonway-plan .toggle { margin-bottom: 14px; }
#pricing #plan-price-details > [data-billing-state][aria-hidden="true"] { display: none; }
#pricing .team-calculator-link { margin: 16px 0 4px; }

/* Let the referral message use the available desktop width and wrap naturally. */
#referral-promotion .referral-summary { max-width: none; }

/* Keep the three main section introductions consistent. */
#platform .section-intro,
#workflow .section-intro,
#use-cases .section-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
#platform .section-intro > div,
#workflow .section-intro > div,
#use-cases .section-intro > div { display: block; }
#platform .section-intro .eyebrow,
#workflow .section-intro .eyebrow,
#use-cases .section-intro .eyebrow { margin-bottom: 18px; }
#workflow .section-intro h2,
#use-cases .section-intro h2 { max-width: 620px; }
#platform .section-intro > p,
#workflow .section-intro > p,
#use-cases .section-intro > p { grid-column: 1; grid-row: auto; margin: 0; }

/* Keep all six examples equal in size with workflow chips at the bottom. */
#use-cases .use-case-grid { align-items: stretch; }
#use-cases .use-case-card { padding-bottom: 26px; }
#use-cases .use-case-card ol { margin-top: auto; }

/* Fit the five workflow chips on wide screens without reducing text size. */
@media (min-width: 1200px) {
  #use-cases .use-case-card { padding-inline: 26px; }
  #use-cases .use-case-card ol { gap: 4px; }
  #use-cases .use-case-card li { padding-inline: 6px; gap: 4px; }
}

/* Avoid stacking the note's bottom margin on the section padding. */
#use-cases .use-case-note { margin-bottom: 0; }
#use-cases.use-cases-section { padding-bottom: 48px; }

/* Four quiet connectors, only while the five steps share one row. */
@media (min-width: 1061px) {
  #workflow .journey-track { display: none; }
  #workflow .journey-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 56px;
    right: -8px;
    height: 1px;
    background: #a9cec7;
    pointer-events: none;
  }
  #workflow .journey-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    right: -8px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #a9cec7;
    border-right: 1px solid #a9cec7;
    transform: rotate(45deg);
    pointer-events: none;
  }
}
