/* hero-lab — site pages (AI Agents, Why Orcha, Community, articles, legal) in the homepage style. */

/* Hero: white, no dot grid, homepage wave along the bottom */
.product-hero { position: relative; overflow: hidden; background: var(--bg) !important; }
.product-hero::before, .product-hero::after { display: none !important; }
.product-hero > .wrap { position: relative; z-index: 1; }
.pp-waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 360px; z-index: 0; pointer-events: none; }
/* No grey band after the hero */
.product-hero + section.p-section { background: var(--bg); }

/* Community and articles (Tailwind-built pages): homepage type, blue actions, homepage cards */
body.font-sans, .font-sans { font-family: var(--sans) !important; }
[class*="bg-zinc-950"] { background-color: var(--accent) !important; }
[class*="bg-zinc-950"]:hover { background-color: #005ba6 !important; }
button[class*="rounded-full"][type="submit"], a[class*="rounded-full"][class*="bg-zinc-950"] { border-radius: 8px !important; }
.filter-tab { border-radius: 999px; }
.content-card { border-radius: 10px !important; border-color: var(--line) !important; box-shadow: none !important; transform: none !important; transition: background-color .3s, border-color .3s !important; }
.content-card:hover { background: var(--bg-2) !important; border-color: #e6e1d6 !important; }
.content-card > div:first-child { aspect-ratio: auto !important; height: 112px; filter: saturate(1.6); border-bottom: 1px solid color-mix(in oklab, var(--line), transparent 35%); }
.content-card > div:first-child > div { width: 44px !important; height: 44px !important; border-radius: 8px !important; box-shadow: none !important; }
.content-card > div:first-child svg { width: 22px !important; height: 22px !important; }
.content-card h3 { font-weight: 500 !important; letter-spacing: -0.01em; }
[class*="rounded-2xl"][class*="border"] { border-radius: 10px !important; }

/* AI Agents hero: every tile keeps one height while the active tile rotates */
.ak-tile { height: 150px; min-height: 150px !important; }
.ak-tile-name, .ak-tile-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Hero metric bar sits on white, above the wave */
.product-hero .stat-row { position: relative; z-index: 1; background: var(--bg); }
.product-hero .stat-row .stat { background: var(--bg); }

/* AI Agents · "Three layers. One model." in the app's visual language */
.ont2 { max-width: 1080px; margin: 8px auto 0; display: grid; }
.ont2 .om-ic { width: 16px; height: 16px; }
.ont2-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ont2-use { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--om-border); border-radius: 10px; box-shadow: var(--om-shadow-card); }
.ont2-use b { display: block; font-size: 15px; font-weight: 600; color: var(--om-fg); }
.ont2-use span:not(.ont2-ic) { display: block; font-size: 13px; color: var(--om-fg-subtle); }
.ont2-ic { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--om-tint); color: var(--om-brand); }
.ont2-ic .om-ic { width: 18px; height: 18px; }

/* Data flowing up between the layers */
.ont2-flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 40px; }
.ont2-flow span { position: relative; justify-self: center; width: 1px; background: repeating-linear-gradient(to bottom, var(--om-border-strong) 0 3px, transparent 3px 7px); }
.ont2-flow span::after { content: ""; position: absolute; left: -2px; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--om-brand); opacity: 0; animation: ont2-up 2.4s ease-in infinite; }
.ont2-flow span:nth-child(2)::after { animation-delay: .8s; } .ont2-flow span:nth-child(3)::after { animation-delay: 1.6s; }
.ont2-flow span:nth-child(4)::after { animation-delay: .4s; } .ont2-flow span:nth-child(5)::after { animation-delay: 1.2s; } .ont2-flow span:nth-child(6)::after { animation-delay: 2s; }
@keyframes ont2-up { 0% { bottom: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ont2-flow span::after { animation: none; } }

.ont2-model { background: #fff; border: 1px solid var(--om-border); border-radius: 12px; box-shadow: 0 30px 70px -36px rgba(28,24,19,.25); overflow: hidden; }
.ont2-h { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--om-border-subtle); background: var(--om-bg-subtle); }
.ont2-sub { font-size: 13px; color: var(--om-fg-subtle); }
.ont2-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 22px 24px; }
.ont2-obj dl { margin: 6px 0 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 10px; font-size: 13px; }
.ont2-obj dt { color: var(--om-fg-subtle); }
.ont2-obj dd { margin: 0; font-weight: 600; color: var(--om-fg); }
.ont2-obj .om-card-h .mono { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--om-fg-muted); }
.ont2-obj .om-pill { height: 20px; font-size: 11.5px; }

.ont2-graph { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 76px minmax(0, 1fr); grid-template-rows: auto 52px auto; align-items: center; }
.ont2-node { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid var(--om-border); border-radius: 8px; box-shadow: var(--om-shadow-sm); font-size: 14px; font-weight: 600; color: var(--om-fg); white-space: nowrap; }
.ont2-node .om-tile { width: 28px; height: 28px; }
.ont2-node.on { border-color: var(--om-brand); box-shadow: 0 0 0 3px var(--om-az-100); }
.om-tile.acc { background: var(--om-tint); color: var(--om-brand-strong); }
.om-tile.ent { background: var(--om-bg-muted); color: var(--om-fg-muted); }
.ont2-rel { position: relative; justify-self: center; align-self: center; z-index: 0; font-size: 11.5px; font-weight: 500; color: var(--om-brand-strong); background: var(--om-tint); border: 1px solid var(--om-az-200); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.ont2-rel::before { content: ""; position: absolute; z-index: -1; background: var(--om-border-strong); }
.ont2-rel.h::before { left: -14px; right: -14px; top: 50%; height: 1px; }
.ont2-rel.v::before { top: -14px; bottom: -14px; left: 50%; width: 1px; }

.ont2-sources { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; background: #fff; border: 1px solid var(--om-border); border-radius: 10px; box-shadow: var(--om-shadow-card); }
.ont2-sources .om-label { margin-right: 6px; }
.ont2-src { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--om-border-strong); border-radius: 6px; font-size: 13.5px; color: var(--om-fg); background: #fff; }
.ont2-src .om-ic { width: 15px; height: 15px; color: var(--om-fg-muted); }

@media (max-width: 960px) {
  .ont2-body { grid-template-columns: 1fr; }
  .ont2-uses { grid-template-columns: 1fr; gap: 10px; }
  .ont2-graph { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); }
  .ont2-rel { font-size: 0; padding: 0; width: 7px; height: 7px; }
  .ont2-node { flex-direction: column; gap: 5px; padding: 8px 4px; font-size: 12px; white-space: normal; text-align: center; }
  .ont2-flow:nth-of-type(2) span:nth-child(n+4) { display: none; }
}

/* Tailwind-built pages (Community, articles, 404, Microsoft approval): headlines in the homepage weight */
h1.font-bold, h2.font-bold { font-weight: 500 !important; letter-spacing: -0.03em; }

/* AI Agents: spacing under the "Three layers" headline */
.ont-c > h2.h-section { margin: 0 0 20px; }

/* German compound nouns in headlines: keep long words inside narrow screens */
@media (max-width: 480px) {
  html[lang="de"] .legal-doc h1 { font-size: 32px; letter-spacing: -1px; overflow-wrap: anywhere; }
}
