/* Local brand surfaces shared across the public landing page. */
body {
  background: #f7f9fc;
}

/* Business value, commercial scope and implementation evidence. */
.value-section .section-header { max-width: 780px; }
.value-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.value-grid article { min-width: 0; border-top: 1px solid #cbd8e5; padding-top: 20px; }
.value-index { font: 13px var(--font-mono); color: #54728f; }
.value-grid h3 { margin: 10px 0; font-size: 20px; line-height: 1.4; }
.value-grid p { color: var(--text-muted); margin-bottom: 16px; }
.value-grid a,.assurance-doc-link,.faq-answer a { color: var(--primary); font-weight: 600; text-underline-offset: 4px; }
.value-grid a:focus-visible,.assurance-doc-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.pricing-scope { margin-top: 48px; padding-top: 32px; border-top: 1px solid #c4d3e2; }
.pricing-scope h3 { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.pricing-formula { color: var(--text-muted); max-width: 820px; margin-bottom: 24px; }
.pricing-scope-table { width: 100%; border-collapse: collapse; text-align: left; background: #fff; font-size: 14px; }
.pricing-scope-table caption { text-align: left; padding: 0 0 12px; color: var(--text-dim); font-size: 13px; }
.pricing-scope-table th,.pricing-scope-table td { padding: 17px 20px; border-bottom: 1px solid #dce5ef; vertical-align: top; overflow-wrap: anywhere; }
.pricing-scope-table thead { background: #e1eaf3; color: #243e5a; }
.pricing-scope-table tbody th { width: 32%; font-weight: 600; }
.pricing-scope-table td { color: var(--text-muted); }
.pricing-scope-note { margin-top: 18px; color: var(--text-muted); max-width: 900px; font-size: 13px; }
.assurance-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 64px; align-items: start; }
.assurance-intro p { color: var(--text-muted); margin: 18px 0; }
.assurance-intro .assurance-status { font-size: 13px; color: #5f7186; padding-top: 16px; border-top: 1px solid #dce5ef; }
.assurance-list { min-width: 0; }
.assurance-list > div { border-top: 1px solid #cfdae6; padding: 18px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 20px; }
.assurance-list dt { font-weight: 600; color: var(--text-main); }
.assurance-list dd { color: var(--text-muted); font-size: 14px; }
button.faq-question { width: 100%; border: 0; text-align: left; font-family: inherit; gap: 16px; }
button.faq-question:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.faq-indicator { flex-shrink: 0; }
.faq-answer[hidden] { display: none!important; }
#pricing,#business-value,#implementation-assurance,#faq { scroll-margin-top: 90px; }
@media(max-width:900px) {
  .value-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .assurance-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
@media(max-width:600px) {
  .pricing-scope { margin-top: 32px; padding-top: 24px; }
  .pricing-scope-table,.pricing-scope-table tbody { display: block; }
  .pricing-scope-table caption { display: block; }
  .pricing-scope-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .pricing-scope-table tr { display: block; padding: 16px; border-bottom: 1px solid #dce5ef; }
  .pricing-scope-table th,.pricing-scope-table td { display: block; width: 100%!important; padding: 0; border: 0; }
  .pricing-scope-table td { margin-top: 8px; }
  .assurance-list > div { grid-template-columns: minmax(0,1fr); gap: 8px; }
}

.hero-title,
.section-title {
  text-wrap: balance;
}

.site-header {
  background: rgb(255 255 255 / .96);
  border-bottom-color: #dce5ef;
  box-shadow: 0 4px 24px rgb(24 49 80 / .035);
}

.hero-section,
.showcase-section,
.section-wrapper,
.site-footer {
  position: relative;
  isolation: isolate;
}

.hero-section {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 12%, #d9eaf3 0, transparent 48%),
    radial-gradient(ellipse at 8% 80%, #e5edf8 0, transparent 44%),
    #f6f9fc;
  border-bottom-color: #dce6ef;
}

.hero-section::before,
.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(31 69 107 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(31 69 107 / .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 35%, transparent 65%, #000);
}

.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -130px;
  top: -80px;
  width: 580px;
  height: 580px;
  background: url('/images/Workniverse.png') center / contain no-repeat;
  opacity: .065;
  transform: rotate(-8deg);
  pointer-events: none;
}

.showcase-section {
  background: #f6f9fc;
  border-bottom-color: #dce6ef;
}

.browser-frame {
  border-color: #bfcddd;
  box-shadow: 0 22px 60px rgb(24 49 80 / .09), 0 3px 10px rgb(24 49 80 / .035);
}

.section-wrapper {
  background: #f7f9fc;
  border-bottom-color: #dfe7f0;
}

#modules {
  background:
    radial-gradient(ellipse at 0 8%, #eaf1f8 0, transparent 48%),
    #f7f9fc;
}

#comparison {
  background: #fff;
}

.pricing-section {
  background:
    radial-gradient(ellipse at 90% 85%, #dfedf4 0, transparent 52%),
    #edf3f9;
  border-color: #d8e3ee;
}

.pricing-section::before {
  background-size: 80px 80px;
  mask-image: linear-gradient(#000, transparent 44%);
}

.pricing-card {
  background: #fff;
  border-color: #d4dfeb;
  box-shadow: 0 8px 28px rgb(24 49 80 / .035);
}

.pricing-card-featured {
  background: #f7faff;
  border-color: #2d52b2;
}

.pricing-price-block {
  margin-top: 26px;
}

.pricing-price-block .pricing-price {
  margin-top: 0;
}

#architecture {
  background: #f7f9fc;
}

#docs-lookup {
  background:
    radial-gradient(ellipse at 5% 100%, #e4eef5 0, transparent 55%),
    #f0f5fa;
}

.site-footer {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 95% 100%, #203d54 0, transparent 60%),
    #112031;
  border-top-color: #d8e3ee;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgb(211 229 244 / .045) 1px, transparent 1px);
  background-size: 96px 100%;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}

.site-footer .footer-logo-img {
  filter: brightness(0) invert(1);
  opacity: .95;
}

@media (max-width: 760px) {
  .hero-section::after { width: 340px; height: 340px; right: -140px; top: -40px; opacity: .045; }
  .hero-section::before { background-size: 48px 48px; opacity: .6; }
  .pricing-price-block { margin-top: 20px; }
}

.ecosystem-view-label { color: #49627e; font-size: 13px; font-weight: 600; padding: 8px 0; }

/* Touch screens keep motion active without depending on a first tap. */
html, body { max-width: 100%; }
.navbar-container { min-width: 0; }
.landing-menu-toggle { display: none; background: #fff; border: 1px solid #c4d2e1; border-radius: 6px; padding: 9px 10px; font: inherit; font-size: 12px; color: #1c3554; }
@media (max-width: 1360px) {
  .site-header .brand-tag { display: none; }
  .site-header .nav-links { gap: 12px; }
}
@media (max-width: 1200px) {
  .site-header .nav-links { display: none; }
  .landing-menu-toggle { display: inline-flex; }
  .site-header.is-menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 16px; right: 16px; top: calc(100% + 4px); padding: 18px; background: #fff; border: 1px solid #d4deeb; border-radius: 10px; box-shadow: 0 12px 28px #152d4914; }
  .site-header.is-menu-open .nav-item-link { padding: 7px 0; }
}
.carousel-wrapper { min-width: 0; max-width: min(var(--container-max), 100%); }
.browser-frame, .carousel-slide, .lookup-results-grid { min-width: 0; max-width: 100%; }
.lookup-results-grid .lookup-item { width: auto; min-width: 0; }
.ecosystem-interactive-stage { grid-template-columns: minmax(0, 580px) minmax(0, 1fr); }
.ecosystem-orbit-wrapper, .ecosystem-inspector-pane { min-width: 0; }
.orbit-stage-inner { width: min(560px, calc(100% - 16px)); }
.orbit-svg-layer, .orbit-nodes-layer { width: 100%; height: 100%; }
.lookup-search-bar, .lookup-input { min-width: 0; }
.lookup-input { width: 100%; }
.lookup-status { padding: 20px 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.lookup-status[hidden] { display: none; }
.lookup-retry { display: block; margin-top: 12px; padding: 9px 14px; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; color: var(--primary); font: inherit; cursor: pointer; }
@media (max-width: 1100px) {
  .ecosystem-interactive-stage { grid-template-columns: minmax(0, 1fr); }
}
/* Native scrolling keeps long document strips visible on touch browsers. */
@media (hover: none), (max-width: 640px) {
  .marquee-row-wrapper { overflow-x: auto; scrollbar-width: none; scroll-behavior: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee-row-wrapper::-webkit-scrollbar { display: none; }
  .marquee-track.scroll-left, .marquee-track.scroll-right { animation: none; transform: none; will-change: auto; }
  .marquee-dual-wrapper { touch-action: pan-x pan-y; }
}
@media (hover: none) {
  .marquee-track, .marquee-track:hover { animation-play-state: running !important; }
}
@media (max-width: 1024px) {
  .hero-main-title { font-size: clamp(30px, 5vw, 48px) !important; }
  .section-title { font-size: clamp(25px, 4vw, 36px); }
  .carousel-tab-nav { flex-wrap: wrap; gap: 6px; }
  .carousel-header-controls { flex-wrap: wrap; gap: 12px; }
  .ecosystem-orbit-wrapper { max-width: 100%; }
}
@media (max-width: 640px) {
  .section-wrapper { padding: 48px 0; }
  .container, .section-container, .carousel-wrapper { padding-left: 16px; padding-right: 16px; }
  .hero-section { padding-left: 16px; padding-right: 16px; }
  .site-header .navbar-container { padding: 0 16px; }
  .site-header .brand-logo-area { flex: 1 1 100px; min-width: 0; }
  .site-header .brand-company-logo { max-width: min(185px,100%); height: auto; max-height: 38px; }
  .site-header .nav-actions { flex-wrap: nowrap; }
  .hero-main-title { font-size: clamp(28px, 7.5vw, 38px) !important; overflow-wrap: anywhere; }
  .hero-cta-group, .nav-actions { flex-wrap: wrap; gap: 8px; }
  .hero-cta-group > * { max-width: 100%; }
  .carousel-tab-btn { flex: 1 1 140px; white-space: normal; text-align: left; }
  .lookup-results-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-lookup-box { padding: 18px; }
  .lookup-search-bar { flex-direction: column; gap: 10px; }
  .lookup-search-bar > * { width: 100%; min-height: 44px; }
  .lookup-search-bar > .btn-nav { justify-content: center; }
  .lookup-item { width: min(280px, calc(100vw - 84px)); padding: 14px; }
  .lookup-item-header { flex-wrap: wrap; }
  .lookup-item-title { overflow-wrap: anywhere; }
  .ecosystem-topbar { padding: 16px; }
  .ecosystem-view-label { padding: 0; }
  .ecosystem-toolbar { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .eco-tool-btn { min-width: 0; min-height: 42px; justify-content: center; padding: 8px; white-space: nowrap; }
  #orbitAutoLabel { white-space: normal; }
  .ecosystem-inspector-pane { padding: 20px 18px; }
  .inspector-top-meta { align-items: flex-start; }
  .inspector-badge-live { margin-left: 0; max-width: 100%; }
  .inspector-title { font-size: 21px; overflow-wrap: anywhere; }
  .inspector-flows-container { padding: 12px; }
  .flows-header { flex-wrap: wrap; gap: 8px; }
  .flow-row { grid-template-columns: minmax(0, 1fr) 18px; padding: 10px; }
  .flow-target-name { white-space: normal; }
  .flow-action-desc { grid-column: 1 / -1; }
  .comparison-table-wrapper, .table-responsive { max-width: 100%; overflow-x: auto; }
  .preview-screen { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
}
@media (max-width: 620px) {
  .ecosystem-orbit-wrapper { height: 440px; }
  .orbit-stage-inner { height: 408px; transform: none; }
  .orbit-node-card { width: clamp(86px, 27vw, 110px); padding: 8px 6px; }
  .orbit-node-card.dimmed { opacity: .72; }
  .orbit-node-card .node-header, .orbit-node-card .node-status-tag { display: none; }
  .node-title { min-height: 2.6em; display: flex; align-items: center; justify-content: center; white-space: normal; text-align: center; font-size: 11.5px; }
  .orbit-center-core { width: clamp(68px, 22vw, 78px); height: clamp(68px, 22vw, 78px); padding: 6px; }
  .orbit-core-name { font-size: 11px; margin-bottom: 0; }
  .orbit-core-tag, .orbit-core-status { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track.scroll-left, .marquee-track.scroll-right { animation: none; }
}
