/* Public layout, using Chatwoot's Inter type, Lucide icons and button geometry. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/InterVariable.woff2') format('woff2'); }
:root { --max: 1240px; --radius: 12px; }
body { font-family: Inter, system-ui, sans-serif; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
:where(a, button, summary, input):focus-visible { outline: 2px solid #648be1; outline-offset: 4px; }
.button { min-height: 44px; padding: 0 18px; gap: 8px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background-color 100ms ease-out, filter 100ms ease-out, box-shadow 100ms ease-out; }
.button:hover { transform: none; filter: brightness(1.06); }
.button:active { transform: scale(.98); }
.button .ui-icon { width: 18px; height: 18px; }
.button-ghost { background: #fff; border-color: #d9dcd4; }
.button-ghost:hover { background: #f0f1eb; }
.arrow-link { gap: 8px; align-items: center; font-size: 14px; font-weight: 500; }
.arrow-link .ui-icon { width: 18px; height: 18px; }
.site-header { position: sticky; z-index: 50; top: 0; width: 100%; height: auto; min-height: 76px; margin: 0; padding: 0; display: block; border: 0; border-bottom: 1px solid #30333a; border-radius: 0; background: #181a1f; color: #fff; box-shadow: none; backdrop-filter: none; }
.header-inner { max-width: 1280px; min-height: 76px; padding: 0 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 110px; align-items: center; }
.brand img { width: 60px; height: 44px; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; }
.nav-trigger, .nav-links>.nav-direct { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 8px; color: #d7d9df; background: transparent; font-size: 14px; font-weight: 500; opacity: 1; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
.nav-trigger>.ui-icon { width: 14px; height: 14px; transition: transform 180ms ease; }
.nav-trigger:hover, .nav-direct:hover, .nav-item.is-open>.nav-trigger { color: #fff; background: #2a2d34; }
.nav-item.is-open>.nav-trigger>.ui-icon { transform: rotate(180deg); }
.nav-links a[aria-current=page] { text-decoration: none; color: #e2f300; }
.nav-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: 400px; padding: 14px; border: 1px solid #393d46; border-radius: 12px; color: #e8eaf0; background: #1b1d22; box-shadow: 0 18px 50px #0003; opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 160ms ease, transform 180ms ease, visibility 180ms; }
.nav-panel::before { content: ''; position: absolute; top: -16px; left: 0; width: 100%; height: 16px; }
.nav-item.is-open>.nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-panel-wide { width: 780px; padding: 0; }
.nav-panel-body { display: grid; grid-template-columns: 1fr 230px; gap: 18px; padding: 24px; }
.nav-caption { display: block; padding: 8px 10px 14px; color: #9299a5; font-size: 12px; font-weight: 500; }
.nav-product-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.nav-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 10px; border-radius: 8px; opacity: 1!important; transition: background-color 100ms ease; }
.nav-card:hover, .nav-card:focus-visible { background: #292c33; }
.nav-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #3b4353; border-radius: 8px; color: #9cbeff; background: #252d3b; }
.nav-icon .ui-icon { width: 20px; height: 20px; }
.nav-card>span:nth-child(2) { flex: 1; min-width: 0; }
.nav-card b, .nav-card small { display: block; }
.nav-card b { margin: 1px 0 6px; color: #f4f5f7; font-size: 14px; font-weight: 500; }
.nav-card small { max-width: 300px; color: #a0a6b1; font-size: 12px; font-weight: 400; line-height: 1.5; }
.nav-card>.ui-icon { margin-top: 8px; width: 16px; height: 16px; color: #697383; opacity: 0; transition: opacity 140ms; }
.nav-card:hover>.ui-icon { opacity: 1; }
.nav-feature { display: flex; flex-direction: column; padding: 16px; border: 1px solid #3b414c; border-radius: 10px; background: #23272f; opacity: 1!important; }
.nav-feature-visual { min-height: 184px; padding: 14px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.nav-feature-bubble { padding: 10px 12px; border: 1px solid #484e58; border-radius: 8px 8px 8px 2px; color: #d8dce6; background: #303640; font-size: 11px; }
.nav-feature-bubble.reply { margin-left: 15px; border-color: #3563ad; border-radius: 8px 8px 2px 8px; color: #fff; background: var(--blue); }
.nav-feature-label { display: flex; align-items: center; gap: 5px; padding: 7px 9px; margin-left: auto; color: #e2f300; font-size: 10px; }
.nav-feature-label .ui-icon { width: 14px; height: 14px; }
.nav-feature>b { margin-top: 16px; font-size: 17px; font-weight: 500; line-height: 1.4; }
.nav-feature>span { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; color: #aebfff; font-size: 12px; }
.nav-feature>span .ui-icon { width: 16px; height: 16px; }
.nav-panel-bottom { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #393d46; border-radius: 0 0 12px 12px; color: #9299a5; background: #16181c; font-size: 12px; }
.nav-panel-bottom a, .nav-all { display: flex; align-items: center; gap: 8px; color: #b8ccff; opacity: 1!important; }
.nav-panel-bottom .ui-icon, .nav-all .ui-icon { width: 16px; height: 16px; }
.nav-all { padding: 16px 10px 4px; margin-top: 12px; justify-content: space-between; border-top: 1px solid #393d46; font-size: 13px; font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-login { padding: 10px 0; color: #d7d9df; font-size: 14px; font-weight: 500; }
.nav-login:hover { color: #fff; }
.nav-actions .button { min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.menu-button { display: none; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid #424650; border-radius: 8px; background: #24272d; }
.menu-button span { width: 18px; margin: 5px auto; transition: transform 160ms ease; }
.menu-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-button span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* A consistent page rhythm; previews sit next to readable product copy. */
.hero { width: min(calc(100% - 48px), 1240px); padding: 76px 0 48px; }
.eyebrow, .mini-kicker, .section-kicker { font-size: 13px; letter-spacing: 0; font-weight: 500; text-transform: none; }
.hero h1 { max-width: 980px; margin-top: 24px; font-size: clamp(48px, 6.4vw, 86px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600; }
.hero>p { max-width: 650px; margin-top: 24px; font-size: 17px; line-height: 1.7; }
.hero-actions { margin-top: 28px; gap: 12px; }
.hero-note { margin-top: 30px; gap: 12px; }
.hero-note span { padding: 6px 0; border: 0; background: none; font-size: 12px; color: #71756b; }
.hero-note span+span::before { content: '·'; margin-right: 12px; color: #adb1a5; }
#product, .usecase-card[id] { scroll-margin-top: 100px; }
.product-stage { width: min(calc(100% - 64px), 1280px); margin-bottom: 80px; border-radius: 12px; box-shadow: 0 18px 50px #2323181f; }
.stage-top { grid-template-columns: 80px 1fr 180px; height: 38px; }
.stage-url { font-size: 11px; }
.live-pill { font-size: 10px; background: none; }
.real-app-shell { height: 570px; grid-template-columns: 48px 145px 270px minmax(0, 1fr) 190px; font-size: 10px; }
.real-view-nav h3, .real-conversation-list>header h3 { font-size: 13px; }
.real-view-nav small { font-size: 8px; }
.real-view-nav a { padding: 9px 6px; font-size: 10px; }
.real-conversation-list article { min-height: 95px; grid-template-columns: 30px minmax(0,1fr); padding: 12px 10px; gap: 8px; }
.demo-avatar { width: 30px; height: 30px; }
.real-conversation-list h4 { font-size: 12px; }
.real-conversation-list p { font-size: 10px; }
.real-conversation-list article small { font-size: 9px; }
.real-conversation-list article small b { font-size: 8px; }
.real-conversation-list time { font-size: 8px; }
.real-list-filter button { font-size: 10px; }
.real-list-filter small { font-size: 9px; }
.real-thread h4 { font-size: 12px; }
.real-thread header small { font-size: 10px; }
.real-thread header button { font-size: 10px; }
.real-thread-body { padding: 18px; }
.bubble { max-width: 86%; margin-top: 14px; font-size: 12px; }
.bubble time { font-size: 9px; }
.tool-event { max-width: 94%; margin: 12px auto; padding: 9px; background: #20252c; border-color: #343d48; }
.tool-event b { font-size: 10px; }
.tool-event span { font-size: 9px; }
.real-composer { background: #1e2229; }
.real-composer button { font-size: 10px; }
.real-contact { padding: 12px; font-size: 10px; }
.real-contact section>small { font-size: 8px; }
.real-contact section p { font-size: 9px; gap: 6px; }
.real-contact section p b { overflow: hidden; text-overflow: ellipsis; }
.real-tags span, .real-tags b { font-size: 8px; background: #272c34; }
.real-rail .ui-icon, .mini-app-rail .ui-icon { width: 18px; height: 18px; }
.real-view-nav a, .real-thread header>span { align-items: center; gap: 5px; }
.real-view-nav a .ui-icon { width: 13px; height: 13px; }
.real-view-nav a>span { display: inline-flex; align-items: center; gap: 5px; }
.real-view-nav a b { margin-left: auto; }
.real-tree article small { display: flex; align-items: center; gap: 6px; }
.real-tree article small .ui-icon { width: 15px; height: 15px; }
.real-conversation-list .ui-icon, .real-thread header .ui-icon { width: 13px; height: 13px; }
.real-thread header>span { display: inline-flex; }
.real-conversation-list article small b .ui-icon { width: 10px; height: 10px; margin-right: 3px; }
.real-tree>button .ui-icon { width: 14px; height: 14px; }
.statement-grid { padding: 80px max(24px, calc((100vw - 1240px)/2)); grid-template-columns: 180px 1fr; gap: 60px; }
.statement-grid h2 { max-width: 880px; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.statement-grid p { max-width: 640px; margin-top: 24px; font-size: 16px; line-height: 1.75; }
.system-steps { padding: 0 max(24px, calc((100vw - 1240px)/2)) 80px; gap: 0; border-top: 0; }
.system-steps article { min-height: 300px; padding: 28px 32px; border-top: 1px solid #dad9b8; border-right: 1px solid #dad9b8; }
.system-steps article:first-child { padding-left: 0; }
.system-steps article:last-child { border-right: 0; padding-right: 0; }
.system-steps article>span { display: none; }
.step-icon { width: 44px; height: 44px; margin-top: 0; border-radius: 8px; }
.step-icon .ui-icon { width: 24px; height: 24px; }
.system-steps h3 { margin-top: 22px; font-size: 23px; font-weight: 600; }
.system-steps p { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.system-steps a { position: static; margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.system-steps a .ui-icon { width: 16px; height: 16px; }
.feature-block { padding: 88px max(24px, calc((100vw - 1240px)/2)); gap: 44px; }
.workflow-feature { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
.agent-feature { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
.feature-copy h2 { margin-top: 18px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.feature-copy>p { margin-top: 22px; font-size: 15px; line-height: 1.75; }
.feature-copy ul { margin-top: 24px; }
.feature-copy li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.6; }
.feature-copy li::before { content: ''; display: block; width: 16px; height: 16px; margin: 3px 0 0; flex: 0 0 auto; background-color: currentColor; mask: url('/assets/check.svg') center / contain no-repeat; }
.product-ui { min-width: 0; border-radius: 12px; border: 1px solid #3c414a; box-shadow: 0 18px 44px #0002; font-size: 10px; }
.real-workflow>header, .real-agent>header { height: 54px; padding: 0 14px; gap: 6px; font-size: 11px; }
.real-workflow>header nav button:not(.publish) { display: none; }
.real-workflow>header small { font-size: 9px; }
.real-workflow>header em { display: none; }
.real-workflow>header button, .real-agent>header button { font-size: 10px; }
.real-workflow-body { height: 460px; grid-template-columns: 44px minmax(0, 1fr); }
.real-step-settings { display: none; }
.canvas-bar { height: 38px; font-size: 10px; }
.canvas-bar button { font-size: 10px; }
.real-tree { padding-top: 28px; }
.real-tree article { width: 190px; padding: 13px; border-radius: 8px; background: #22262d; font-size: 12px; }
.real-tree article p { font-size: 10px; }
.real-fork { width: 230px; }
.real-fork span { font-size: 8px; }
.real-children { width: 310px; gap: 16px; }
.real-children article { min-width: 0; font-size: 10px; }
.real-agent-body { height: 470px; grid-template-columns: 44px minmax(0,1fr); }
.real-agent-test { display: none; }
.real-agent-form { padding: 16px; border-right: 0; }
.real-agent-form summary, .real-agent-form>p { font-size: 11px; }
.real-agent-form>p { line-height: 1.6; }
.real-agent-form button { font-size: 11px; }
.agent-toggle { margin: 14px 0; font-size: 11px; }
.real-agent-form h4 { font-size: 12px; }
.insert-row { gap: 10px; flex-wrap: wrap; font-size: 9px; }
.real-editor { height: 195px; font-size: 11px; line-height: 1.65; }
.real-agent-form>small { font-size: 9px; line-height: 1.5; }
.channel-section { padding: 88px max(24px, calc((100vw - 1240px)/2)); }
.channel-section>div:first-child { grid-template-columns: 180px 1fr; gap: 60px; }
.channel-section h2 { max-width: 820px; font-size: clamp(34px, 3.8vw, 50px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; }
.channel-cards { margin-top: 44px; }
.channel-cards article { min-height: 240px; padding: 24px; }
.channel-cards article:first-child { padding-left: 0; }
.channel-cards strong { font-size: 17px; font-weight: 600; }
.channel-cards p { font-size: 14px; line-height: 1.7; }
.channel-logo { width: 42px; height: 42px; border-radius: 8px; }
.channel-logo .ui-icon { width: 22px; height: 22px; }
.final-cta { padding: 72px max(24px, calc((100vw - 1240px)/2)); }
.final-cta h2 { max-width: 900px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; }
.page-hero { padding: 76px max(24px, calc((100vw - 1240px)/2)) 64px; }
.page-hero h1 { font-size: clamp(44px, 5.8vw, 76px); line-height: 1.08; letter-spacing: -.05em; font-weight: 600; }
.page-hero>p { font-size: 17px; line-height: 1.75; }
.page-section { padding: 72px max(24px, calc((100vw - 1240px)/2)); }
.page-section h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; font-weight: 600; }
.feature-grid article p, .integration-grid article p, .usecase-grid article p { font-size: 14px; line-height: 1.7; }
.site-footer { background: #15171b; }
.footer-cta { padding: 72px max(24px, calc((100vw - 1240px)/2)); align-items: center; background: #1b1d22; border-color: #343740; }
.footer-cta h2 { max-width: 730px; margin-top: 16px; font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; }
.footer-cta-action { max-width: 300px; flex-shrink: 0; }
.footer-cta-action p { margin: 0 0 24px; color: #aeb3bd; font-size: 15px; line-height: 1.65; }
.footer-main { padding: 64px max(24px, calc((100vw - 1240px)/2)); grid-template-columns: 1.6fr repeat(4,1fr); gap: 40px; }
.footer-brand img { width: 64px; }
.footer-brand p { max-width: 230px; font-size: 13px; line-height: 1.75; }
.footer-contact { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: #d6dbe5; font-size: 13px; }
.footer-contact .ui-icon { width: 16px; height: 16px; }
.site-footer nav { gap: 14px; font-size: 13px; }
.site-footer nav strong { font-size: 13px; font-weight: 500; }
.footer-bottom { padding: 24px max(24px, calc((100vw - 1240px)/2)); font-size: 11px; color: #8b919c; border-color: #343740; }
.docs-hero { padding-top: 72px; }
.docs-hero h1 { font-size: clamp(44px, 5.8vw, 76px); font-weight: 600; }
.docs-category p, .docs-steps p, .article-callout p, .article-note p { font-size: 14px; }
.docs-category>b, .docs-popular a b, .docs-sidebar summary, .docs-toc strong { font-size: 13px; }
.docs-sidebar nav a, .docs-toc a, .docs-breadcrumb { font-size: 12px; }
.docs-article h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1.12; }
.docs-home-link, .docs-category>b { display: flex; align-items: center; gap: 8px; }
.docs-home-link .ui-icon, .docs-sidebar .ui-icon, .docs-category-label .ui-icon, .docs-search-results .ui-icon, .article-related .ui-icon, .docs-toc .ui-icon { width: 16px; height: 16px; }
.docs-category-label { gap: 8px; align-items: center; font-size: 11px; }
.docs-popular h2 { font-size: 38px; font-weight: 600; }
.docs-category p { line-height: 1.65; }
.docs-layout { max-width: 1320px; grid-template-columns: 240px minmax(0,760px) 170px; gap: 36px; padding: 0 24px; }
@media (max-width: 1180px) {
  .real-app-shell { grid-template-columns: 44px 130px 250px minmax(0,1fr); }
  .real-contact { display: none; }
  .footer-main { grid-template-columns: 1.4fr repeat(4,1fr); gap: 24px; }
  .feature-block { gap: 32px; }
  .feature-copy h2 { font-size: 36px; }
  .docs-layout { grid-template-columns: 220px minmax(0,1fr); }
}
@media (max-width: 960px) {
  .header-inner { min-height: 68px; gap: 16px; flex-wrap: wrap; padding: 12px 20px; }
  .brand { margin-right: auto; flex-basis: auto; }
  .brand img { width: 54px; height: 38px; }
  .menu-button { display: block; }
  .site-header .nav-links, .site-header .nav-actions { display: none; }
  .site-header.menu-open { padding: 0; display: block; background: #181a1f; }
  .site-header.menu-open .nav-links { width: 100%; max-height: calc(100dvh - 168px); margin: 0; padding: 8px 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; border: 0; border-top: 1px solid #343740; border-radius: 0; background: transparent; overflow-y: auto; order: 3; }
  .nav-item { width: 100%; }
  .nav-trigger, .nav-links>.nav-direct { width: 100%; min-height: 44px; justify-content: space-between; padding: 0 10px; }
  .nav-panel, .nav-panel-wide { position: static; display: none; width: 100%; margin-top: 6px; padding: 8px; visibility: visible; opacity: 1; transform: none; box-shadow: none; border-color: #343740; background: #202329; }
  .nav-panel::before { display: none; }
  .nav-item.is-open>.nav-panel { display: block; transform: none; }
  .nav-panel-body { display: block; padding: 0; }
  .nav-feature { display: none; }
  .nav-panel-bottom { padding: 14px 10px; margin: 8px -8px -8px; font-size: 11px; }
  .nav-caption { padding: 10px; }
  .nav-card { padding: 12px 10px; }
  .site-header.menu-open .nav-actions { width: 100%; padding: 12px 0 4px; display: flex; gap: 16px; justify-content: space-between; border-top: 1px solid #343740; order: 4; }
  .nav-actions .button { width: auto; }
  .statement-grid, .channel-section>div:first-child { grid-template-columns: 1fr; gap: 24px; }
  .feature-block { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .feature-copy { max-width: 680px; }
  .agent-feature .feature-copy { grid-row: 1; }
  .product-ui { width: 100%; }
  .real-workflow-body { grid-template-columns: 44px minmax(0,1fr) 210px; }
  .real-step-settings { display: block; font-size: 11px; }
  .real-step-settings p { font-size: 11px; }
  .real-agent-body { grid-template-columns: 44px minmax(0,1fr) 250px; }
  .real-agent-test { display: block; font-size: 11px; }
  .real-agent-test p, .real-agent-test button, .real-agent-test textarea { font-size: 10px; }
  .footer-main { grid-template-columns: repeat(4,1fr); }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 700px) {
  .hero { padding: 52px 0 36px; }
  .hero h1 { font-size: 52px; }
  .hero>p { font-size: 16px; }
  .hero-note { gap: 8px; }
  .hero-note span { font-size: 11px; }
  .product-stage { width: calc(100% - 32px); margin-bottom: 52px; }
  .real-app-shell { height: 530px; grid-template-columns: 42px 220px minmax(0,1fr); }
  .real-view-nav { display: none; }
  .statement-grid, .feature-block, .channel-section { padding-block: 56px; }
  .system-steps { grid-template-columns: 1fr; padding-bottom: 48px; }
  .system-steps article, .system-steps article:first-child, .system-steps article:last-child { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 0; }
  .system-steps h3 { font-size: 22px; }
  .feature-copy h2 { font-size: 34px; }
  .real-workflow-body, .real-agent-body { grid-template-columns: 42px minmax(0,1fr); }
  .real-agent-test, .real-step-settings { display: none; }
  .channel-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .channel-cards article, .channel-cards article:first-child { min-height: 0; padding: 22px 0; border: 0; border-top: 1px solid #dcded3; }
  .channel-cards strong { font-size: 16px; }
  .footer-cta { padding-block: 52px; align-items: flex-start; gap: 30px; }
  .footer-cta-action { max-width: 400px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; padding-block: 48px; }
  .page-hero { padding-top: 56px; }
  .page-section { padding-block: 56px; }
  .docs-layout { padding: 0; display: block; }
}
@media (max-width: 480px) {
  .hero { width: calc(100% - 40px); }
  .hero h1 { font-size: 44px; }
  .eyebrow { font-size: 11px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-note span+span::before { display: none; }
  .real-app-shell { grid-template-columns: 38px minmax(0,1fr); }
  .real-conversation-list { display: none; }
  .stage-top { grid-template-columns: 40px 1fr; padding: 0 12px; }
  .stage-url { display: block; text-align: right; font-size: 9px; }
  .live-pill { display: none; }
  .real-thread>header>span { display: none; }
  .real-tree { transform: none; }
  .real-children { width: calc(100% - 16px); gap: 8px; }
  .real-children article { padding: 10px; font-size: 9px; }
  .real-fork { width: 160px; }
  .real-agent-form { padding: 12px; }
  .real-workflow>header nav { margin-left: auto; }
  .real-thread-body { padding: 16px; }
  .bubble { max-width: 90%; }
  .channel-cards { grid-template-columns: 1fr; gap: 0; }
  .statement-grid h2, .channel-section h2 { font-size: 34px; }
  .footer-main { gap: 32px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; line-height: 1.6; }
  .nav-panel-bottom>span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none!important; animation: none!important; } }

/* Mega menus follow the reference composition across the navigation width. */
.header-inner { position: relative; gap: 20px; }
.brand { flex-basis: 86px; }
.nav-item { position: static; }
.nav-panel, .nav-panel-wide { left: 24px; right: 24px; top: 100%; width: auto; padding: 0; border-radius: 0 0 12px 12px; transform: translateY(-6px); background: #202226; }
.nav-item.is-open>.nav-panel { transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; padding: 28px 24px 32px; }
.mega-column { min-width: 0; }
.product-mega .mega-column:last-child { border-left: 1px solid #404247; padding-left: 24px; }
.nav-caption { padding: 0 10px 18px; font-size: 13px; color: #afb4bc; }
.nav-card { gap: 14px; padding: 12px 10px; align-items: flex-start; }
.nav-icon { width: 24px; height: 24px; border: 0; border-radius: 0; background: none; color: #f2f3f5; }
.nav-icon .ui-icon { width: 22px; height: 22px; stroke-width: 1.6; }
.nav-card b { margin: 1px 0 5px; font-weight: 550; font-size: 14px; line-height: 1.5; }
.nav-card small { font-size: 13px; line-height: 1.55; color: #a1a6ae; }
.nav-card small:empty { display: none; }
.product-mega .nav-card { min-height: 52px; }
.nav-card>.ui-icon { display: none; }
.nav-actions { gap: 18px; white-space: nowrap; }
.nav-actions .nav-contact { border: 1px solid #464951; background: transparent; color: #f2f3f5; }
.nav-contact:hover { background: #2c2f36; }
.industry-menu { display: grid; grid-template-columns: 25% 1fr; gap: 16px; padding: 16px; }
.industry-tabs { display: flex; flex-direction: column; gap: 4px; }
.industry-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 8px; color: #fff; background: none; text-align: left; font-size: 14px; font-weight: 550; cursor: pointer; }
.industry-tabs button[aria-selected=true], .industry-tabs button:hover { background: #2d2f34; }
.industry-tabs .ui-icon { width: 16px; height: 16px; opacity: 0; }
.industry-tabs button[aria-selected=true] .ui-icon { opacity: 1; }
.industry-content { padding: 20px; border-radius: 10px; background: #2b2d32; }
.industry-pane { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; min-height: 260px; }
.industry-pane[hidden] { display: none; }
.industry-story { max-width: 370px; display: block; opacity: 1!important; }
.industry-visual { height: 130px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; border: 1px solid #515545; border-radius: 8px; background: #363a2b; color: #e2f300; }
.industry-visual>.ui-icon { width: 38px; height: 38px; stroke-width: 1.5; }
.industry-visual span { font-size: 11px; color: #e9eddd; display: flex; align-items: center; gap: 10px; }
.industry-visual span .ui-icon { width: 14px; height: 14px; }
.industry-story>b { display: block; margin-top: 18px; font-size: 17px; line-height: 1.45; font-weight: 550; color: #fff; }
.industry-story p { margin-top: 10px; color: #afb4bc; font-size: 13px; line-height: 1.6; }
.industry-story>span, .resource-callout>span { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #e2f300; font-size: 13px; font-weight: 500; }
.industry-story>span .ui-icon, .resource-callout>span .ui-icon { width: 16px; height: 16px; }
.resource-callout { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; align-self: stretch; padding: 24px; border-radius: 10px; background: #2b2d32; opacity: 1!important; }
.resource-callout>.ui-icon { width: 40px; height: 40px; stroke-width: 1.5; color: #e2f300; }
.resource-callout b { font-size: 17px; line-height: 1.5; color: #fff; font-weight: 550; }
.resource-callout p { color: #afb4bc; font-size: 14px; line-height: 1.6; }
.resource-callout>span { margin-top: auto; }

/* Legal documents use one readable column, with persistent page navigation. */
.legal-shell { background: #fffef3; }
.legal-main { width: min(calc(100% - 48px), 1180px); max-width: none; padding: 64px 0 80px; margin: auto; }
.legal-intro { padding-bottom: 36px; border-bottom: 1px solid #dedecd; }
.legal-intro .mini-kicker { color: #6a705c; }
.legal-main h1 { margin: 18px 0 16px; font-size: clamp(38px,5vw,60px); line-height: 1.12; font-weight: 600; letter-spacing: -.045em; }
.legal-meta { margin: 0; color: #747969; font-size: 14px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0,720px); justify-content: space-between; gap: 64px; padding-top: 40px; }
.legal-sidebar { align-self: start; position: sticky; top: 104px; }
.legal-sidebar>strong { display: block; margin-bottom: 16px; color: #868a7b; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 600; }
.legal-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.legal-sidebar a { padding: 9px 12px; border-radius: 6px; color: #565b4c; font-size: 13px; line-height: 1.5; }
.legal-sidebar a:hover, .legal-sidebar a[aria-current=page] { background: #efefdb; color: #232318; }
.legal-sidebar .legal-pages { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dedecd; }
.legal-content { display: block; }
.legal-content section { padding: 0 0 32px; margin-bottom: 32px; border: 0; border-bottom: 1px solid #e6e6d9; border-radius: 0; background: none; scroll-margin-top: 105px; }
.legal-content h2 { display: flex; gap: 16px; font-size: 22px; line-height: 1.4; margin: 0 0 16px; font-weight: 550; letter-spacing: -.02em; }
.legal-content h2>span { color: #9b9e91; font-size: 13px; padding-top: 7px; }
.legal-content p, .legal-content li { color: #5b6051; font-size: 15px; line-height: 1.85; }
.legal-content ul { padding-left: 22px; }
.legal-content li+li { margin-top: 8px; }
.legal-note { padding: 20px; border: 1px solid #dddcc1; border-radius: 8px; background: #f4f4de; font-size: 14px; line-height: 1.7; }
.legal-contact { margin-top: 32px; color: #636857; font-size: 14px; line-height: 1.8; }
.legal-contact a { color: #2859af; text-decoration: underline; text-underline-offset: 3px; }
.contact-layout { max-width: 1180px; padding: 76px 24px 96px; margin: auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; }
.contact-copy h1 { margin-top: 20px; font-size: clamp(44px,5vw,64px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; }
.contact-copy>p { margin-top: 24px; max-width: 440px; font-size: 17px; line-height: 1.75; color: #656b58; }
.contact-copy .button { margin-top: 28px; }
.contact-options { display: flex; flex-direction: column; gap: 20px; }
.contact-options article { padding: 28px; background: #fff; border: 1px solid #dedfd3; border-radius: 12px; }
.contact-options article>.ui-icon { width: 24px; height: 24px; color: #2859af; }
.contact-options h2 { margin: 16px 0 10px; font-size: 21px; letter-spacing: -.02em; }
.contact-options p { color: #747969; font-size: 14px; line-height: 1.75; }
.contact-options .arrow-link { margin-top: 20px; display: inline-flex; color: #2859af; }
@media (max-width: 1100px) and (min-width: 961px) { .header-inner { gap: 12px; padding-inline: 16px; } .brand { flex-basis: 62px; } .nav-trigger, .nav-links>.nav-direct { padding-inline: 9px; } .nav-actions { gap: 12px; } .mega-grid { gap: 14px; } }
@media (max-width: 960px) {
  .nav-panel, .nav-panel-wide { position: static; width: 100%; padding: 0; border-radius: 8px; transform: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; padding: 20px 12px; gap: 24px 12px; }
  .product-mega .mega-column:last-child { border: 0; padding: 0; }
  .nav-caption { padding-bottom: 8px; }
  .industry-menu { display: block; padding: 12px; }
  .industry-tabs { flex-direction: row; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
  .industry-tabs button { padding: 8px 12px; min-height: 40px; font-size: 12px; }
  .industry-tabs .ui-icon { display: none; }
  .industry-pane { grid-template-columns: 1fr 1fr; gap: 20px; }
  .legal-layout { gap: 32px; grid-template-columns: 190px minmax(0,1fr); }
  .contact-layout { gap: 40px; }
}
@media (max-width: 700px) {
  .mega-grid, .industry-pane { grid-template-columns: 1fr; }
  .resource-callout { padding: 20px; }
  .industry-story { max-width: none; }
  .industry-visual { height: 110px; }
  .site-header.menu-open .nav-actions { gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
  .legal-main { padding-top: 40px; }
  .legal-layout { display: block; padding-top: 24px; }
  .legal-sidebar { position: static; margin-bottom: 32px; }
  .legal-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .legal-sidebar .legal-pages { margin-top: 16px; padding-top: 16px; }
  .legal-content h2 { font-size: 20px; }
  .contact-layout { display: block; padding-top: 48px; }
  .contact-options { margin-top: 40px; }
}
