/* 2026 visual refinement: quiet, flat, and documentation-first. */
html { --flow-position: 0; }
*, *::before, *::after { box-shadow: none !important; }

.btn, .path-card, .explore-card, .benefit-card, .step-card, .feature-card,
.setup-card, .doc-card, .pager-link, .callout, .guide-image, .browser-frame,
.docs-search-launch, .docs-search-dialog, .image-zoom-trigger {
  box-shadow: none !important;
}

.path-action::after, .feature-link::after, .pager-link::after,
.btn::after, .nav-chevron, [class*="arrow"] { display: none !important; content: none !important; }

/* Marketing surfaces */
.platform-card, .feature-card, .path-card, .explore-card, .step-card {
  border-color: #dfe6ea !important;
  border-radius: 12px !important;
}
.platform-card:hover, .feature-card:hover, .path-card:hover, .explore-card:hover,
.step-card:hover { transform: none !important; border-color: #9fc9df !important; }
.hero-shot .browser-frame, .feature-shot .browser-frame, .teaser-zoom-frame {
  border: 1px solid #dfe6ea !important;
  border-radius: 14px !important;
  background: #fff !important;
}

/* Minimal search */
.docs-search-launch {
  min-height: 40px !important;
  padding: 9px 12px !important;
  color: #51616d !important;
  background: #fff !important;
  border: 1px solid #dce4e9 !important;
  border-radius: 10px !important;
}
.docs-search-launch::before, .docs-search-launch::after,
.docs-search-launch kbd { display: none !important; }
.docs-search-overlay { background: rgba(20, 31, 40, .26) !important; backdrop-filter: blur(18px) saturate(125%) !important; }
.docs-search-dialog {
  width: min(92vw, 620px) !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 22px !important;
}
.docs-search-head { padding: 22px 24px 10px !important; border: 0 !important; }
.docs-search-kicker { display: none !important; }
.docs-search-head h2 { font-size: 20px !important; letter-spacing: -.02em !important; }
.docs-search-close {
  width: 30px !important; height: 30px !important; color: #52616c !important;
  background: #eef2f4 !important; border: 0 !important; border-radius: 50% !important;
}
.docs-search-field { padding: 10px 24px 14px !important; }
.docs-search-field::before, .docs-search-field::after { display: none !important; }
.docs-search-field input {
  min-height: 46px !important; padding: 11px 14px !important; color: #24323c !important;
  background: #f4f6f7 !important; border: 1px solid transparent !important; border-radius: 12px !important;
}
.docs-search-field input:focus { background: #fff !important; border-color: #86bdd9 !important; outline: 3px solid rgba(0,132,198,.11) !important; }
.docs-search-results { max-height: 46vh !important; padding: 0 14px 16px !important; overflow-y: auto !important; }
.docs-search-result { padding: 12px 14px !important; border-radius: 10px !important; }

/* Minimal image viewer */
.image-zoom-trigger { display: none !important; }
.minimal-viewer[hidden] { display: none !important; }
.minimal-viewer {
  position: fixed; z-index: 1000; inset: 0; display: grid; padding: 28px;
  place-items: center; background: rgba(23, 31, 38, .42); backdrop-filter: blur(24px) saturate(120%);
}
.minimal-viewer-inner {
  position: relative; display: grid; width: min(95vw, 1400px); max-height: 92vh;
  padding: 12px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
}
.minimal-viewer img { display: block; max-width: 100%; max-height: calc(92vh - 24px); margin: auto; object-fit: contain; border-radius: 13px; }
.minimal-viewer-close {
  position: absolute; z-index: 2; top: 18px; right: 18px; display: grid; width: 34px; height: 34px;
  place-items: center; color: #27343d; background: rgba(245,247,248,.9); border: 1px solid rgba(210,220,226,.9);
  border-radius: 50%; cursor: pointer; font-size: 0; backdrop-filter: blur(10px);
}
.minimal-viewer-close::before { content: "×"; font-size: 22px; font-weight: 300; line-height: 1; }
.guide-image img, .browser-frame img, .feature-shot img, .hero-shot img { cursor: zoom-in; }

/* Documentation: clear identity, shorter navigation, linear reading */
.doc-mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 18px; padding: 4px;
  background: #eef2f4; border: 1px solid #dfe6ea; border-radius: 11px;
}
.doc-mode-switch a { padding: 8px 9px; color: #62717c; border-radius: 7px; text-align: center; font-size: 12px; font-weight: 700; }
.doc-mode-switch a.is-active { color: #173142; background: #fff; }
.doc-context-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 11px 0; color: #63727d; border: 0;
  font-size: 12px;
}
.doc-context-switch strong { color: #273945; letter-spacing: .01em; }
.doc-context-switch a { color: #1c8bc5; font-weight: 750; }
.sidebar-kicker { margin-bottom: 10px !important; }
.sidebar-menu { gap: 2px !important; }
.sidebar-section-label { margin-top: 18px !important; }
.sidebar-link { border-radius: 7px !important; }
.doc-nav-group { margin: 0; border: 0; }
.doc-nav-group > summary {
  position: relative; padding: 11px 24px 11px 4px; color: #536570; cursor: pointer;
  list-style: none; font-size: 14px; font-weight: 800;
}
.doc-nav-group > summary::-webkit-details-marker { display: none; }
.doc-nav-group > summary::after {
  position: absolute; top: 50%; right: 5px; display: block !important; content: "+" !important;
  color: #8a98a1; font-size: 16px; font-weight: 400; transform: translateY(-50%);
}
.doc-nav-group[open] > summary::after { content: "−" !important; }
.doc-nav-items { display: grid; gap: 1px; padding: 0 0 8px; }
.doc-nav-link {
  display: block; padding: 7px 8px 7px 14px; color: #6b7a84; border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0; font-size: 13px; line-height: 1.45;
}
.doc-nav-link:hover { color: #23404f; background: #f3f6f7; }
.doc-nav-link.is-active { color: #1c8bc5; background: #edf7fb; border-left-color: #1c8bc5; font-weight: 800; }
.doc-context-divider,
.doc-nav-divider,
.doc-section-divider,
.doc-inner-divider,
.doc-main-divider,
.doc-pager-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent 0, #dbe4e8 8%, #dbe4e8 92%, transparent 100%);
}
.doc-context-divider { margin: 18px 0 24px; }
.doc-nav-divider { margin: 0; background: #e3e9ec; }
.doc-section-divider { margin: 0; }
.doc-inner-divider { margin: 0; background: linear-gradient(90deg, transparent 0, #e5ebee 12%, #e5ebee 88%, transparent 100%); }
.doc-main-divider { margin: 0; background: linear-gradient(90deg, transparent 0, #dbe4e8 8%, #dbe4e8 92%, transparent 100%); }
.doc-pager-divider { margin: 8px 0 24px; }
.docs-layout { display: block !important; max-width: 840px !important; }
.page-toc { display: none !important; }
.docs-article { max-width: 840px !important; }
.docs-article > section {
  padding: 34px 0 !important; border: 0 !important;
  background: transparent !important; border-radius: 0 !important;
}
.docs-article > section:first-child { padding-top: 0 !important; }
.scope-grid, .card-grid { display: block !important; }
.doc-card {
  margin: 0 !important; padding: 18px 0 !important; background: transparent !important;
  border: 0 !important; border-radius: 0 !important;
}
.procedure > li { margin-bottom: 12px !important; }
.story-band, .setup-story {
  display: block !important; max-width: 820px !important; margin: 0 auto !important;
  padding: 34px 0 !important; background: transparent !important; border: 0 !important;
  border-radius: 0 !important;
}
.story-copy { max-width: 720px !important; padding: 0 !important; }
.story-copy p { max-width: 700px !important; }
.guide-image { width: 100% !important; max-width: 820px !important; margin: 22px 0 0 !important; border-radius: 12px !important; }
.setup-index-grid { display: block !important; }
.setup-card {
  display: grid !important; grid-template-columns: 48px minmax(0,1fr) !important; gap: 3px 14px !important;
  padding: 17px 4px !important; background: transparent !important; border: 0 !important;
  border-radius: 0 !important;
}
.setup-card .card-number { grid-row: 1 / span 2 !important; color: #8a98a2 !important; }
.setup-card:hover { transform: none !important; background: #f8fafb !important; }
.pager { gap: 14px !important; padding-top: 0 !important; border: 0 !important; }
.pager-link {
  min-height: 84px !important;
  padding: 18px 20px !important;
  background: #f3f7f9 !important;
  border: 1px solid #dce6ea !important;
  border-radius: 12px !important;
  transition: background-color 160ms ease, border-color 160ms ease !important;
}
.pager-link:hover,
.pager-link:focus-visible {
  transform: none !important;
  background: #eaf5fa !important;
  border-color: #91c7df !important;
}
.pager-link strong { color: #173142 !important; font-size: 16px !important; line-height: 1.35 !important; }

/* Setup overview is now one ordered guide. */
.setup-overview .docs-article > section:not(#scope) { display: none !important; }
.setup-overview .doc-section-divider { display: none !important; }
.setup-overview .setup-order { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: setup-order; }
.setup-overview .setup-order li { position: relative; padding: 5px 0 24px 54px; counter-increment: setup-order; }
.setup-overview .setup-order li::before {
  position: absolute; top: 0; left: 0; display: grid; width: 34px; height: 34px; place-items: center;
  color: #1c8bc5; background: #eaf6fb; border-radius: 50%; content: counter(setup-order); font-size: 12px; font-weight: 800;
}
.setup-overview .setup-order a { color: #1c8bc5; font-weight: 750; }

/* How it works motion system */
.motion-section { padding: 96px 0; overflow: hidden; background: #f7f9fa; border-block: 1px solid #e2e8ec; }
.motion-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(540px,1.18fr); gap: 80px; align-items: center; }
.motion-copy .section-lede { max-width: 580px; }
.motion-tabs { display: inline-flex; gap: 4px; margin: 26px 0 24px; padding: 4px; background: #e9eef1; border-radius: 12px; }
.motion-tab { padding: 9px 13px; color: #63727d; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; }
.motion-tab.is-active { color: #173142; background: #fff; }
.motion-detail { display: grid; grid-template-columns: 42px 1fr; gap: 15px; max-width: 590px; padding-top: 20px; border-top: 1px solid #dce4e9; }
.motion-detail-index { color: #1c8bc5; font-size: 12px; font-weight: 800; }
.motion-detail h3 { margin: 0 0 5px; font-size: 20px; }
.motion-detail p { margin: 0; color: #63727d; }
.flow-canvas { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; min-height: 430px; align-items: center; isolation: isolate; }
.flow-rail { position: absolute; z-index: -1; top: 50%; right: 8%; left: 8%; height: 2px; overflow: visible; background: #cddde5; }
.flow-signal { position: absolute; top: -5px; left: calc((100% - 12px) * var(--flow-position) / 3); width: 12px; height: 12px; background: #1c8bc5; border: 3px solid #fff; border-radius: 50%; transition: left .7s cubic-bezier(.22,1,.36,1); }
.flow-node { position: relative; display: grid; min-height: 138px; padding: 18px 12px; place-content: center; color: #596a76; background: rgba(255,255,255,.86); border: 1px solid #dce5e9; border-radius: 50%; cursor: pointer; text-align: center; backdrop-filter: blur(12px); transition: border-color .3s, color .3s, transform .3s; }
.flow-node span { color: #91a0aa; font-size: 10px; font-weight: 800; }
.flow-node strong { font-size: 14px; }
.flow-node small { color: #8996a0; font-size: 10px; }
.flow-node.is-active { color: #173142; border-color: #1c8bc5; transform: translateY(-9px); }
.flow-orbit { position: absolute; z-index: -2; width: 260px; height: 260px; border: 1px solid rgba(0,132,198,.14); border-radius: 50%; animation: orbit 12s linear infinite; }
.orbit-one { top: 3%; right: 5%; }.orbit-two { bottom: 2%; left: 12%; width: 180px; height: 180px; animation-direction: reverse; animation-duration: 9s; }
.flow-orbit::after { position: absolute; top: 12%; left: 12%; width: 7px; height: 7px; background: #7bc2e5; border-radius: 50%; content: ""; }
@keyframes orbit { to { transform: rotate(360deg); } }
.implementation-line { padding: 74px 0; }
.implementation-line ol { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid #dfe6ea; }
.implementation-line li { display: grid; gap: 14px; padding: 24px 24px 0 0; }
.implementation-line li span { color: #1c8bc5; font-size: 11px; font-weight: 800; }
.implementation-line h3 { margin: 0 0 5px; font-size: 18px; }.implementation-line p { margin: 0; color: #687783; font-size: 14px; }

@media (max-width: 980px) {
  .motion-layout { grid-template-columns: 1fr; gap: 44px; }
  .flow-canvas { min-height: 330px; }
}
@media (max-width: 700px) {
  .motion-section { padding: 68px 0; }
  .motion-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .flow-canvas { grid-template-columns: 1fr 1fr; gap: 24px; min-height: 440px; }
  .flow-rail { top: 8%; bottom: 8%; left: 50%; width: 2px; height: auto; }
  .flow-signal { display: none; }
  .flow-node { min-height: 128px; }
  .implementation-line ol { grid-template-columns: 1fr 1fr; gap: 28px; }
  .minimal-viewer { padding: 12px; }.minimal-viewer-inner { padding: 8px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .flow-orbit { animation: none; }.flow-signal { transition: none; } }

/* Documentation typography: calm, readable, and consistent. */
.setup-docs,
.usage-docs {
  font-size: 16px !important;
  line-height: 1.6 !important;
}
.setup-docs :where(p, li, td, th, a, button, input, label, summary, small, code, kbd),
.usage-docs :where(p, li, td, th, a, button, input, label, summary, small, code, kbd) {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
.setup-docs :where(p, li, td, th, a, button, label, summary) :where(span, strong, small, code),
.usage-docs :where(p, li, td, th, a, button, label, summary) :where(span, strong, small, code) {
  font-size: inherit !important;
}
.setup-docs :where(.eyebrow, .sidebar-kicker, .sidebar-section-label, .card-number, .motion-detail-index),
.usage-docs :where(.eyebrow, .sidebar-kicker, .sidebar-section-label, .card-number, .motion-detail-index) {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
.setup-docs .main-shell h1,
.usage-docs .main-shell h1 {
  font-size: 28px !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
}
.setup-docs .main-shell h2,
.usage-docs .main-shell h2 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  letter-spacing: -.015em !important;
}
.setup-docs .main-shell h3,
.usage-docs .main-shell h3 {
  font-size: 18px !important;
  line-height: 1.4 !important;
  letter-spacing: -.005em !important;
}
.setup-docs .lead,
.usage-docs .lead {
  font-size: 17px !important;
  line-height: 1.55 !important;
}
.setup-docs .doc-nav-group > summary,
.setup-docs .doc-nav-link,
.setup-docs .doc-mode-switch a,
.setup-docs .doc-context-switch,
.setup-docs .docs-search-launch,
.setup-docs .docs-search-result,
.usage-docs .doc-nav-group > summary,
.usage-docs .doc-nav-link,
.usage-docs .doc-mode-switch a,
.usage-docs .doc-context-switch,
.usage-docs .docs-search-launch,
.usage-docs .docs-search-result {
  font-size: 16px !important;
}
.setup-docs .setup-order li::before,
.usage-docs .setup-order li::before {
  font-size: 16px !important;
}

/* Documentation header and alignment */
.setup-docs .doc-breadcrumbs,
.usage-docs .doc-breadcrumbs {
  display: none !important;
}
.setup-docs .main-shell,
.usage-docs .main-shell {
  width: min(960px, calc(100% - 56px)) !important;
}
.setup-docs .main-shell > .hero,
.usage-docs .main-shell > .hero {
  min-height: 0 !important;
  padding: 38px 0 30px !important;
  border: 0 !important;
}
.setup-docs .hero-inner,
.usage-docs .hero-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
.setup-docs .hero-inner > .eyebrow,
.usage-docs .hero-inner > .eyebrow {
  display: none !important;
}
.doc-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.setup-docs .doc-title-row h1,
.usage-docs .doc-title-row h1 {
  margin: 0 !important;
}
.setup-docs .doc-context-switch,
.usage-docs .doc-context-switch {
  display: block !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: right !important;
}
.setup-docs .doc-context-switch a,
.usage-docs .doc-context-switch a {
  color: #1c8bc5 !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
.setup-docs .hero .lead,
.usage-docs .hero .lead {
  max-width: 680px !important;
  margin: 10px 0 0 !important;
  text-align: left !important;
}
.setup-docs :where(.story-band, .setup-story, .content-band, .docs-layout),
.usage-docs :where(.story-band, .setup-story, .content-band, .docs-layout) {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.setup-docs :where(.story-copy, .docs-article, .content-band),
.usage-docs :where(.story-copy, .docs-article, .content-band) {
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}

/* Separate plain instruction sections from a preceding story divider. */
.preserved-tutorial > .story-band + section:not(.story-band) {
  padding-top: 28px;
}
.setup-docs .eyebrow,
.usage-docs .eyebrow {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
@media (max-width: 640px) {
  .setup-docs .main-shell,
  .usage-docs .main-shell {
    width: min(100% - 32px, 960px) !important;
  }
  .doc-title-row {
    display: block;
  }
  .setup-docs .doc-context-switch,
  .usage-docs .doc-context-switch {
    margin-top: 8px !important;
    text-align: left !important;
  }
}

/* Keep content from touching the border of the block above it. */
.docs-article :where(
  .table-scroll,
  .guide-image,
  .warning,
  .notice,
  .success-box,
  .next-step-box,
  .scope-banner
) + :where(p, ul, ol, h3, h4, .table-scroll, .guide-image, .warning, .notice, .success-box, .next-step-box) {
  margin-top: 22px !important;
}

.docs-article p {
  text-wrap: pretty;
}

/* Shared documentation rhythm and controls. */
.setup-docs,
.usage-docs {
  --doc-space-1: 8px;
  --doc-space-2: 16px;
  --doc-space-3: 24px;
  --doc-space-4: 32px;
}
.setup-docs :where(.docs-layout, .docs-article),
.usage-docs :where(.docs-layout, .docs-article) {
  width: 100% !important;
}
.setup-docs .docs-article > section,
.usage-docs .docs-article > section {
  padding: var(--doc-space-4) 0 !important;
}
.setup-docs .preserved-tutorial > section,
.usage-docs .preserved-tutorial > section,
.setup-docs .main-shell > :where(.story-band, .content-band),
.usage-docs .main-shell > :where(.story-band, .content-band) {
  padding: var(--doc-space-4) 0 !important;
  border: 0 !important;
}
.setup-docs :where(.docs-article, .story-copy) > :first-child,
.usage-docs :where(.docs-article, .story-copy) > :first-child {
  margin-top: 0 !important;
}
.setup-docs :where(.docs-article, .story-copy) > :last-child,
.usage-docs :where(.docs-article, .story-copy) > :last-child {
  margin-bottom: 0 !important;
}
.setup-docs :where(.docs-article, .story-copy) :where(ul, ol),
.usage-docs :where(.docs-article, .story-copy) :where(ul, ol) {
  margin-top: var(--doc-space-2);
  margin-bottom: var(--doc-space-2);
}
.setup-docs :where(.docs-article, .story-copy) li + li,
.usage-docs :where(.docs-article, .story-copy) li + li {
  margin-top: var(--doc-space-1) !important;
}
.setup-docs :where(.notice, .warning, .success-box, .next-step-box),
.usage-docs :where(.notice, .warning, .success-box, .next-step-box) {
  margin-top: var(--doc-space-2);
  padding: var(--doc-space-2) var(--doc-space-3);
  border-radius: 12px;
}
.setup-docs :where(.btn, .button-link),
.usage-docs :where(.btn, .button-link) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 16px !important;
  font-weight: 750;
  line-height: 1.35 !important;
}
.setup-docs .docs-search-launch,
.usage-docs .docs-search-launch {
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
}
.setup-docs .doc-mode-switch,
.usage-docs .doc-mode-switch {
  gap: 4px;
  margin-bottom: var(--doc-space-2);
  padding: 4px;
}
.setup-docs .doc-mode-switch a,
.usage-docs .doc-mode-switch a {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
}
.setup-docs .doc-nav-group > summary,
.usage-docs .doc-nav-group > summary {
  padding-top: 12px;
  padding-bottom: 12px;
}
.setup-docs .doc-nav-items,
.usage-docs .doc-nav-items {
  gap: 2px;
  padding-bottom: 8px;
}
.setup-docs .doc-nav-link,
.usage-docs .doc-nav-link {
  padding: 9px 10px 9px 14px;
}
.setup-docs .pager,
.usage-docs .pager {
  margin-top: 0 !important;
}
@media (max-width: 640px) {
  .setup-docs,
  .usage-docs {
    --doc-space-4: 26px;
  }
  .setup-docs .pager,
  .usage-docs .pager {
    gap: 10px !important;
  }
  .setup-docs .pager-link,
  .usage-docs .pager-link {
    min-height: 76px !important;
    padding: 16px !important;
  }
  .doc-context-divider {
    margin-top: 14px;
    margin-bottom: 20px;
  }
}
