/* Public reading hierarchy and marketing actions. Shared by every public route. */
@media screen {
  :root {
    --o360-type-title: 64px;
    --o360-type-section: 40px;
    --o360-type-subheading: 24px;
    --o360-type-card: 22px;
  }
  @media (max-width: 1200px) {
    :root {
      --o360-type-title: 48px;
      --o360-type-section: 34px;
      --o360-type-subheading: 22px;
    }
  }
  @media (max-width: 600px) {
    :root {
      --o360-type-title: clamp(32px, 8.8vw, 40px);
      --o360-type-section: 28px;
      --o360-type-subheading: 22px;
      --o360-type-card: 20px;
    }
  }

  :is(.public-marketing-shell main, main.home-rebuild) :is(h1, h2, h3) {
    font-family: var(--o360-font-heading);
    text-wrap: pretty;
    overflow-wrap: break-word;
  }
  :is(.public-marketing-shell main, main.home-rebuild) h1 {
    font-size: var(--o360-type-title);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  :is(.public-marketing-shell main, main.home-rebuild) h2 {
    font-size: var(--o360-type-section);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.025em;
  }
  :is(.public-marketing-shell main, main.home-rebuild) h3 {
    font-size: var(--o360-type-subheading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
  }
  /* Cards, callouts and form introductions have a compact heading role. */
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .search-grid, .article-opening, .article-definition, .article-tool,
    .article-related, .demo-form, .conversion-proof, .home-connected-card,
    .home-production-layer, .home-problem-list, .home-product-context
  ) :is(h2, h3) {
    font-size: var(--o360-type-card);
    line-height: 1.3;
  }
  :is(.public-marketing-shell main, main.home-rebuild) .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    max-width: 100%;
    padding: 15px 22px;
    border-radius: 0;
    font-family: var(--o360-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  :is(.public-marketing-shell main, main.home-rebuild) .button > svg { flex-shrink: 0; }
  :is(.public-marketing-shell main, main.home-rebuild) .button:focus-visible {
    outline: 2px solid var(--o360-color-blue);
    outline-offset: 3px;
  }
  :is(.public-marketing-shell main, main.home-rebuild) .button:disabled {
    opacity: .6;
    cursor: not-allowed;
  }
  /* Keep reading bands inside the shared frame; viewport offsets include scrollbars. */
  .public-marketing-shell main .security-contact-cta,
  .public-marketing-shell main.knowledge-article.lifecycle-article > article > .article-section {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 24px;
  }
  .public-marketing-shell main .workflow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .public-marketing-shell main .workflow-strip li { min-width: 0; overflow-wrap: anywhere; }
  main.home-rebuild .home-connected-footer > * { min-width: 0; max-width: 100%; }
  main.home-rebuild .home-connected-footer .status-badge { overflow-wrap: anywhere; }
  @media (max-width: 600px) {
    .public-marketing-shell main .workflow-strip { grid-template-columns: 1fr; }
    .public-marketing-shell main .workflow-strip li::after { display: none; }
  }
}

/* Match the existing important mobile title safeguard in its own cascade layer. */
@layer o360-components {
  @media screen and (max-width: 600px) {
    :is(.public-marketing-shell main, main.home-rebuild) h1 {
      font-size: var(--o360-type-title) !important;
    }
  }
}
