/* Rivet Rocket web preview. The five brand swatches come from the D1 board. */
.mist-preview {
  --navy: #1b2a4a;
  --slate: #4a5d80;
  --mist: #c9d8ee;
  --fog: #e1e6ee;
  --cloud: #eff2f6;
  --paper: var(--cloud);
  --paper-2: #fff;
  --ink: var(--navy);
  --ink-soft: var(--slate);
  --console: var(--navy);
  --console-2: #111a2e;
  --signal: #30538b;
  --signal-2: var(--mist);
  --tint: var(--mist);
  --action: var(--navy);
  --white: #fff;
  --white-soft: var(--fog);
  --hairline-light: #d3dce9;
  --hairline-dark: #ffffff40;
  --demo-active-border: var(--signal);
  --demo-active-fill: var(--fog);
  --stockout-fill: #fcedec;
  --tool-control-border: var(--slate);
  --sans: Figtree, system-ui, sans-serif;
  --display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  --light-wash: linear-gradient(155deg, var(--cloud), var(--fog));
  --dark-wash: radial-gradient(ellipse at 90% 5%, #283a61, var(--navy) 65%, #172540);
  --contour-source: url("audience-contours.svg");
  --content-width: min(1200px, calc(100% - 64px));
  --section-space: clamp(67px, 7.8vw, 112px);
  --card-radius: 22px;
  --card-shadow: 0 16px 36px #1b2a4a12;
  background: white;
  color: var(--ink);
}

.mist-preview :is(h1, h2, h3, .tagline-line, .nav-brand) {
  font-family: var(--display);
  font-weight: 650;
}

:where(.mist-preview) .label-ink {
  color: var(--slate);
}

.mist-preview .path-step {
  color: var(--navy);
}

.mist-preview .decision-path li {
  border-top-color: var(--hairline-light);
}

.mist-preview :focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.mist-preview .section-console :focus-visible {
  outline-color: var(--mist);
}

.mist-preview .container {
  width: var(--content-width);
}

.mist-preview .site-nav {
  top: 18px;
  padding-inline: 0;
}

.mist-preview .nav-pill {
  width: var(--content-width);
  max-width: none;
  gap: clamp(16px, 2.5vw, 36px);
  background: #fffffff5;
  color: var(--navy);
  border-color: var(--hairline-light);
  box-shadow: 0 8px 28px #1b2a4a14;
}

.mist-preview .nav-brand > .mist-d1-logo {
  display: block;
  width: clamp(130px, 11vw, 158px);
  height: auto;
  border-radius: 0;
}

.mist-preview :is(.nav-links a, .nav-disclosure summary) {
  color: var(--slate);
}

.mist-preview :is(.nav-links a:hover, .nav-links a[aria-current], .nav-disclosure summary:hover, .nav-disclosure[open] summary) {
  color: var(--navy);
}

.mist-preview .nav-dropdown {
  background: white;
  border-color: var(--hairline-light);
  box-shadow: var(--card-shadow);
}

.mist-preview .nav-dropdown a:hover {
  background: var(--cloud);
}

.mist-preview .mist-tablet-demo {
  display: none;
}

.mist-preview .nav-toggle {
  border-radius: 50%;
  background: var(--navy);
}

html.menu-open .mist-preview .site-nav::before {
  background: var(--cloud);
}

@media (max-width: 1024px) {
  .interactive .mist-preview .nav-menu {
    background: var(--cloud);
  }
}

.mist-preview :is(.btn-primary, .skip-link) {
  background: var(--navy);
  color: white;
}

.mist-preview .btn-primary:hover {
  background: #29416d;
  color: white;
}

.mist-preview .btn-primary .icon {
  filter: brightness(0) invert(1);
}

.mist-preview .section-console .btn-primary {
  background: var(--mist);
  color: var(--navy);
}

.mist-preview .section-console .btn-primary:hover {
  background: white;
  color: var(--navy);
}

.mist-preview .section-console .btn-primary .icon {
  filter: none;
}

.mist-preview :is(.hero, .article-hero) {
  padding-top: clamp(110px, 10vw, 150px);
  color: var(--navy);
}

.mist-preview :is(.hero, .article-hero, .book, .site-footer, .home-workflow-section, .value-section, .audience-pricing, .experience-card-primary, .agency-plan, .mist-dark-card) {
  position: relative;
  isolation: isolate;
  background: var(--light-wash);
}

.mist-preview :is(.hero, .article-hero, .book, .site-footer, .home-workflow-section, .value-section, .audience-pricing, .experience-card-primary, .agency-plan, .mist-dark-card)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--contour-ink, var(--navy));
  mask: var(--contour-source) left top / max(1440px, 100%) auto repeat-y;
}

.mist-preview :is(.book, .audience-pricing, .experience-card-primary, .agency-plan, .mist-dark-card) {
  --contour-ink: var(--mist);
  background: var(--dark-wash);
}

.mist-preview .book .btn-primary {
  background: var(--cloud);
}

.mist-preview .book .btn-primary:hover {
  background: white;
}

.mist-preview :is(.hero-sub, .hero-proof, .hero-bottom, .article-meta, .article-hero .back-link) {
  color: var(--slate);
}

.mist-preview :is(.hero-bottom a, .hero .text-link, .article-hero .data-label) {
  color: var(--navy);
}

.mist-preview .editorial-label {
  color: var(--slate);
  background: white;
  border-color: var(--hairline-light);
  border-radius: 999px;
}

.mist-preview .hero .text-link .icon {
  filter: none;
}

.mist-preview :is(.hero, .article-hero) .eyebrow {
  color: var(--slate);
}

.mist-preview .section-console {
  color: white;
}

.mist-preview .section-console .eyebrow,
.mist-preview .section-console .label {
  color: var(--mist);
}

.mist-preview .site-footer,
.mist-preview .site-footer .nav-brand {
  color: var(--navy);
}

.mist-preview .site-footer :is(.footer-links a, .footer-brand > p, .footer-legal) {
  color: var(--slate);
}

.mist-preview .site-footer .footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.mist-preview .site-footer :focus-visible {
  outline-color: var(--signal);
}

.mist-preview .footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 8px 20px;
  max-width: none;
}

.mist-preview .footer-legal {
  border-color: #bdcbdf;
}

.mist-preview .faq.section-paper {
  background: var(--paper-2);
  padding-block: var(--section-space);
}

.mist-preview .faq-layout {
  gap: clamp(28px, 5vw, 80px);
}

@media (min-width: 721px) {
  .mist-preview .faq-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }
}

.mist-home .faq .label-ink {
  color: var(--navy);
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list {
  gap: 0;
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list details {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--hairline-light);
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list details:last-child {
  border-bottom: 1px solid var(--hairline-light);
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list summary,
:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list details > p {
  padding-inline: 4px;
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list summary span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--hairline-light);
  font-size: 0;
  line-height: 1;
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list summary span::before {
  content: "+";
  font-size: 18px;
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list details[open] summary span {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: none;
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list details[open] summary span::before {
  content: "−";
}

:is(.mist-home, .mist-audience, .mist-features, .mist-feature-detail, .mist-pricing, .mist-demo) .faq-list summary:focus-visible {
  outline-offset: -2px;
}

.mist-home .hero {
  padding-block: 176px 40px;
}

.mist-home .hero-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 40px;
}

.mist-home .hero h1 {
  font-size: clamp(44px, 4.65vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: initial;
  margin-bottom: 24px;
}

.mist-home .hero-sub {
  max-width: 42ch;
}

.mist-home .hero-copy :is(.hero-sub, .hero-actions) {
  margin-bottom: 24px;
}

.mist-home .hero-bottom {
  margin-top: clamp(28px, 5vw, 72px);
}

.mist-home :is(.section-paper, .book) {
  padding-block: var(--section-space);
}

.mist-home :is(.connected-data-section, .before-after-section, #pricing) {
  background: white;
}

.mist-home .how {
  background: var(--cloud);
}

.mist-home :is(.connected-data-section, .home-capabilities, .before-after-section) {
  border-top: 0;
}

.mist-home :is(.audience-card, .capability-card, .before-after > article),
.mist-preview .offer-price-card {
  border-radius: var(--card-radius);
}

.mist-home .before-after > article:first-of-type {
  background: var(--cloud);
  border-style: dashed;
}

.mist-home :is(.capability-card, .offer-price-card, .before-after > article).mist-dark-card {
  background: var(--dark-wash);
  color: white;
  border-color: transparent;
}

:is(.mist-home, .mist-pricing) .mist-dark-card :is(p, .data-label, .label-ink, .offer-note) {
  color: var(--mist);
}

:is(.mist-home, .mist-pricing) .mist-dark-card :focus-visible {
  outline-color: var(--mist);
}

.mist-preview .capability-icon {
  background: var(--cloud);
  border-color: transparent;
}

.mist-home .capability-card.mist-dark-card .capability-icon {
  background: var(--slate);
}

.mist-home .capability-card.mist-dark-card .icon {
  filter: brightness(0) invert(1);
}

.mist-home .story-stages li {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--hairline-light);
  background: transparent;
}

.mist-home .connected-stages li,
:is(.mist-home, .mist-pricing) .mist-dark-card ul {
  border-color: var(--hairline-dark);
}

.mist-home .manual-stages .story-current {
  background: white;
}

.mist-home .connected-stages .story-current {
  background: #ffffff14;
}

:is(.mist-home, .mist-pricing) .offer-price-card .btn {
  align-self: stretch;
}

:is(.mist-home, .mist-pricing) .mist-dark-card .btn-primary {
  background: var(--cloud);
  color: var(--navy);
}

:is(.mist-home, .mist-pricing) .mist-dark-card .btn-primary:hover {
  background: white;
}

:is(.mist-home, .mist-pricing) .mist-dark-card .btn-primary .icon {
  filter: none;
}

:is(.mist-home, .mist-pricing) .offer-price-card li::before {
  content: "✓";
  color: var(--navy);
  background: var(--mist);
  padding: 1px 4px;
  border-radius: 50%;
}

.mist-home .seller-workflow {
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--card-radius);
  background: white;
}

.mist-home .seller-sequence > li {
  background: var(--cloud);
}

.mist-home .workflow-node,
.mist-home .workflow-connector {
  color: var(--slate);
}

.mist-home .workflow-node[aria-pressed="true"],
.mist-home .workflow-price > strong,
.mist-home .workflow-actions > li::before {
  color: var(--navy);
}

.mist-home .workflow-stock i {
  background: var(--slate);
}

.mist-home .workflow-stock i:last-child {
  background: var(--navy);
}

.mist-home .workflow-question {
  background: white;
  color: var(--navy);
}

.mist-home .seller-sequence > li:has(> .workflow-node[aria-pressed="true"]) {
  background: var(--demo-active-fill);
  border-color: var(--demo-active-border);
  box-shadow: none;
}

.mist-home .seller-sequence > li:last-child:has(> .workflow-node[aria-pressed="true"]) {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.mist-home .seller-sequence > li:last-child:has(> .workflow-node[aria-pressed="true"]) :is(.workflow-node, p),
.mist-home .seller-sequence > li:last-child:has(> .workflow-node[aria-pressed="true"]) .workflow-actions > li::before {
  color: var(--mist);
}

.mist-home .seller-sequence > li:last-child:has(> .workflow-node[aria-pressed="true"]) :focus-visible {
  outline-color: var(--mist);
}

.mist-home .seller-workflow .demo-reveal {
  background: var(--demo-active-fill);
}

.mist-home .hero-stage :is(.window-top, .preview-tabs) {
  background: white;
}

.mist-home .hero-stage .window-top {
  padding-block: 12px;
}

.mist-home .hero-stage .preview-tab {
  border-radius: 999px;
}

.mist-home .hero-stage .preview-tab[aria-selected="false"] {
  background: var(--cloud);
}

.mist-home .hero-stage .preview-tab[aria-selected="false"]:hover {
  background: var(--mist);
}

.mist-home .hero-stage .feature-metrics > div {
  background: var(--cloud);
  border-color: transparent;
}

.mist-preview :is(.product-window, .feature-demo, .feature-dialog) {
  background: white;
  color: var(--navy);
  border-color: var(--hairline-light);
  box-shadow: var(--card-shadow);
}

.mist-preview .product-window {
  border-radius: 20px;
}

.mist-preview .window-top,
.mist-preview .preview-tabs {
  background: var(--cloud);
  border-color: var(--hairline-light);
}

.mist-preview .mini-rivet {
  background: var(--navy);
  color: white;
}

.mist-preview .mini-rivet.mist-d1-mark {
  background: transparent;
  border-radius: 0;
}

.mist-preview .source-join > span {
  color: white;
}

.mist-preview .connection-dot {
  border-color: var(--slate);
}

.mist-preview .preview-tab[aria-selected="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.mist-preview .preview-tab[aria-selected="true"] .icon {
  filter: brightness(0) invert(1);
}

.mist-preview .preview-tab:not([aria-selected="true"]):hover {
  background: var(--mist);
}

.mist-preview .preview-tab:focus-visible {
  outline-offset: 2px;
}

.mist-home .preview-panel {
  min-height: 0;
}

.mist-preview :is(.feature-ai, .feature-next, .article-contents) {
  background: var(--cloud);
  border-radius: 12px;
}

.mist-preview .feature-next {
  padding: 12px;
  border: 0;
}

.mist-preview :is(.stat, .metric, .stock-stats > div, .evidence-strip > div) {
  background: var(--cloud);
  border-color: var(--hairline-light);
}

.mist-preview :is(.stock-baseline, .chart-line) {
  stroke: var(--navy);
}

.mist-preview :is(.stock-order, .chart-projection) {
  stroke: var(--signal);
}

.mist-preview :is(.hero-gap-band, .gap-band) {
  fill: var(--stockout-fill);
}

.mist-preview .stock-axis {
  stroke: var(--hairline-light);
}

.mist-preview .catalog-stock text {
  fill: var(--slate);
}

.mist-preview .connected-preview[data-motion-step="1"] #feature-panel-inventory .feature-metrics > div:last-child,
.mist-preview .connected-preview[data-motion-step="2"] #feature-panel-inventory .feature-ai {
  background: var(--demo-active-fill);
  border-color: var(--demo-active-border);
  box-shadow: none;
}

.mist-preview .data-flow {
  background: white;
  color: var(--navy);
}

.mist-preview .data-flow > div {
  background: var(--cloud);
  border-color: transparent;
}

.mist-preview .feature-demo[data-step="0"] .data-flow > div:first-child,
.mist-preview .feature-demo[data-step="1"] .data-flow > div:nth-child(2),
.mist-preview .feature-demo:is([data-step="2"], [data-step="3"]) .data-flow > div:last-child {
  background: var(--demo-active-fill);
}

.mist-preview :is(.data-flow, .walkthrough-steps button) span {
  color: var(--navy);
}

.mist-preview .walkthrough-steps button[aria-pressed="true"] {
  border-color: var(--demo-active-border);
  background: var(--demo-active-fill);
}

.mist-preview :is(.board-scroll, .case-column) {
  background: var(--cloud);
}

.mist-preview :is(.case-owner, .case-status, .background-case small, .mcp-source-chips) {
  color: var(--slate);
}

.mist-preview :is(.product-window, .feature-demo) .badge {
  color: var(--navy);
  background: var(--mist);
}

.mist-preview :is(.product-window, .feature-demo) .badge.neutral {
  background: var(--cloud);
}

.mist-preview :is(.chat-example, .catalog-chat) .chat-user {
  color: white;
  background: var(--navy);
}

.mist-preview .insight-marker {
  color: white;
  background: var(--navy);
}

.mist-preview .price-comparison > div:last-child strong {
  color: var(--navy);
}

.mist-preview .chart-grid {
  background: repeating-linear-gradient(0deg, transparent 0 31px, var(--hairline-light) 31px 32px);
}

:where(.mist-preview) [data-story-stage].story-current {
  background: var(--demo-active-fill);
}

.mist-preview .search-funnel i,
.mist-preview .catalog-funnel i {
  background: var(--signal);
}

.mist-preview .featured-guide,
.mist-preview .guide-card,
.mist-preview .reading-path {
  background: white;
  border: 1px solid var(--hairline-light);
  border-radius: 16px;
}

.mist-preview .featured-guide {
  box-shadow: var(--card-shadow);
}

.mist-preview .library-section {
  padding-top: 36px;
}

.mist-preview .library-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  margin-bottom: 28px;
}

.mist-preview .library-empty {
  margin-bottom: 32px;
}

.mist-preview .hub-reading-paths {
  margin-block: 0 48px;
}

.mist-preview .hub-reading-paths .label {
  margin-bottom: 16px;
}

.mist-preview .library-section :is(.topic-links a, .search-input-wrap input) {
  border-color: #8291ae;
  color: var(--navy);
  background: white;
}

.mist-preview .topic-links a:hover {
  background: var(--mist);
}

.mist-preview :is(.guide-action, .tool-number, .search-input-wrap button, .article-body a, .article-contents a:hover) {
  color: var(--signal);
}

.mist-preview .article-contents {
  padding: 22px;
}

.mist-preview .article-body :is(p, li) {
  color: var(--slate);
}

.mist-preview :is(.article-product-cta, .article-sources) {
  padding: clamp(20px, 4vw, 32px);
  background: var(--cloud);
  border: 1px solid var(--hairline-light);
  border-radius: 16px;
}

:is(.mist-guide, .mist-comparison-detail) .table-scroll {
  border-radius: 12px;
  overscroll-behavior-inline: contain;
}

:is(.mist-guide, .mist-comparison-detail) .table-scroll:focus-visible {
  outline-offset: 3px;
}

:is(.mist-guide, .mist-comparison-detail) .table-scroll th {
  background: var(--cloud);
  color: var(--navy);
}

:is(.mist-guide, .mist-comparison-detail) .table-scroll tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.mist-diagram {
  min-width: 0;
  padding: clamp(14px, 2.2vw, 30px);
  border: 1px solid #b8c9e2;
  border-radius: 20px;
  background: linear-gradient(140deg, #f4f7fb, var(--mist));
  box-shadow: var(--card-shadow);
}

.mist-diagram figcaption {
  color: var(--slate);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  margin-bottom: 18px;
}

.mist-data-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, .9fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.mist-data-sources {
  display: grid;
  gap: 6px;
  list-style: none;
}

.mist-source-icon {
  display: none;
}

.mist-data-sources li,
.mist-data-node {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--hairline-light);
  border-radius: 8px;
  background: white;
}

.mist-data-flow strong,
.mist-data-flow span:not(.mist-connector) {
  display: block;
  overflow-wrap: anywhere;
}

.mist-data-flow strong {
  font-size: 14px;
  line-height: 1.2;
}

.mist-data-flow span:not(.mist-connector) {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
  color: var(--slate);
}

.mist-data-outcome {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.mist-data-flow .mist-data-outcome span {
  color: var(--fog);
}

.mist-connector {
  position: relative;
  height: 1px;
  background: var(--slate);
}

.mist-connector::after {
  content: "";
  position: absolute;
  inset: -2px 0 auto auto;
  width: 5px;
  height: 5px;
  border: solid var(--slate);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

@media (min-width: 1025px) {
  .mist-preview .nav-menu { flex: 1; }
  .mist-preview .nav-links { margin-inline: auto; }
  .mist-home .capability-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mist-home .capability-card { grid-column: span 2; }
  .mist-home .capability-card:nth-of-type(n+4) { grid-column: span 3; }
}

@media (min-width: 1100px) {
  .mist-home .connected-preview .preview-tabs {
    grid-template-columns: repeat(4, max-content);
    gap: 5px;
  }
  .mist-home .preview-tab {
    padding: 7px 6px;
    gap: 5px;
    min-height: 36px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .interactive .mist-preview .nav-brand { margin-inline-end: auto; }
  .interactive .mist-preview .mist-tablet-demo { display: inline-flex; }
  .interactive .mist-preview .nav-menu .nav-cta { display: none; }
}

@media (max-width: 1024px) {
  .mist-home .hero { padding-top: 124px; }
  .mist-preview .nav-pill { gap: 8px; }
  .mist-home .hero h1 { font-size: clamp(40px, 6vw, 64px); }
}

@media (max-width: 900px) {
  .mist-home .hero-inner { grid-template-columns: 1fr; }
  .mist-preview .article-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .mist-preview { --content-width: calc(100% - 40px); }
  .mist-preview .site-nav { top: 12px; padding-inline: 20px; }
  .mist-preview .nav-pill { width: 100%; }
  .mist-preview .footer-links { gap: 8px 12px; font-size: 13px; }
  .mist-home .hero { padding-top: 100px; }
  .mist-preview :is(.hero, .article-hero) { padding-top: 100px; }
  .mist-preview .hero h1 { font-size: clamp(34px, 9.5vw, 48px); }
  .mist-home .hero-inner { gap: 24px; }
  .mist-home .hero-copy :is(.eyebrow, .hero-sub, .hero-actions) { margin-bottom: 18px; }
  .mist-home .preview-panel { padding: 14px; }
  .mist-home .connected-preview .preview-tabs {
    display: flex;
    overflow-x: auto;
    scroll-padding-inline: 12px;
  }
  .mist-home .connected-preview .preview-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 14px;
    white-space: nowrap;
  }
  .mist-home .connected-preview .preview-tab:focus-visible { outline-offset: -3px; }
  .mist-home #feature-panel-inventory:not([hidden]) {
    display: flex;
    flex-direction: column;
  }
  .mist-home #feature-panel-inventory .feature-metrics {
    order: -1;
    margin-bottom: 12px;
  }
  .mist-home .feature-next { margin-top: 10px; }
  .mist-home .hero-motion-controls { padding: 10px 14px; }
  .mist-home .hero-bottom { margin-top: 24px; flex-wrap: wrap; }

  .mist-hub .library-hero-grid { gap: 18px; }
  .mist-hub .featured-guide {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: stretch;
  }
  .mist-hub .featured-guide > img { height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: contain; background: var(--mist); }
  .mist-hub .featured-guide > div { padding: 12px; }
  .mist-hub .featured-guide h2 { font-size: 17px; line-height: 1.22; margin: 4px 0 6px; }
  .mist-hub .library-section { padding-top: 20px; }
  .mist-hub .library-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--hairline-light);
    border-radius: 16px;
    background: white;
  }
  .mist-hub .library-controls { width: 100%; }
  .mist-hub .library-controls .search-input-wrap input {
    padding-inline-start: 36px;
    border-color: #8291ae;
    border-radius: 999px;
    background: var(--cloud) url("/assets/icons/magnifying-glass.svg") left 12px center / 16px no-repeat;
  }
  .mist-hub .search-input-wrap button {
    inset: 5px 5px 5px auto;
    padding-inline: 12px;
    border-radius: 999px;
    background: white;
  }
  .mist-hub .hub-reading-paths { margin-bottom: 32px; }

  .mist-diagram { padding: 16px; }
  .mist-diagram figcaption { margin-bottom: 12px; }
  .mist-data-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mist-data-sources {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 10px;
  }
  .mist-data-sources li {
    position: relative;
    text-align: center;
    padding: 8px 5px;
  }
  .mist-source-icon {
    display: block;
    margin: 0 auto 5px;
    opacity: .8;
  }
  .mist-data-sources::after,
  .mist-data-sources li::after {
    content: "";
    position: absolute;
    background: var(--slate);
  }
  .mist-data-sources::after {
    inset: auto calc((100% - 12px) / 6) 0;
    height: 1px;
  }
  .mist-data-sources li::after {
    inset: 100% auto auto 50%;
    width: 1px;
    height: 11px;
  }
  .mist-data-node:not(.mist-data-outcome) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 2px 6px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    text-align: center;
  }
  .mist-data-flow .mist-data-node:not(.mist-data-outcome) span { margin-top: 0; }
  .mist-data-outcome {
    justify-self: center;
    width: min(100%, 230px);
    border-color: var(--hairline-light);
    background: white;
    color: var(--navy);
    text-align: center;
  }
  .mist-data-flow .mist-data-outcome span { color: var(--slate); }
  .mist-connector {
    width: 1px;
    height: 12px;
    justify-self: center;
    transform: none;
  }
  .mist-connector::after { inset: auto -2px 0 auto; transform: rotate(135deg); }
}

@media (max-width: 375px) {
  .mist-home .hero { padding-top: 84px; }
  .mist-home .hero-inner { gap: 12px; }
  .mist-home .hero h1 { font-size: 30px; }
  .mist-home .hero-copy :is(.eyebrow, h1, .hero-sub, .hero-actions) { margin-bottom: 12px; }
  .mist-home .hero-copy .eyebrow { font-size: 11px; letter-spacing: .015em; gap: 6px; }
  .mist-home .hero-sub { font-size: 15px; line-height: 1.4; }
  .mist-home .hero-proof { font-size: 13px; line-height: 18px; }
  .mist-home .hero-actions .btn { padding-block: 9px; }
  .mist-home .hero-stage .window-top { padding-block: 7px; }
  .mist-home .connected-preview .preview-tabs { padding-block: 5px; }
  .mist-home #feature-panel-inventory { padding: 10px 10px 14px; }
  .mist-home #feature-panel-inventory .feature-metrics { gap: 6px; }
  .mist-home #feature-panel-inventory .feature-metrics > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2px;
    padding: 7px 4px;
  }
  .mist-home #feature-panel-inventory .feature-metrics span { line-height: 1.25; }
  .mist-home #feature-panel-inventory .feature-metrics strong { font-size: 17px; line-height: 1.35; }

  .mist-hub .library-hero { padding-block: 84px 12px; }
  .mist-hub .library-hero :is(.eyebrow, h1, .hero-sub, .hero-actions) { margin-bottom: 12px; }
  .mist-hub .library-hero h1 { font-size: 30px; line-height: 1.08; }
  .mist-hub .library-hero .hero-sub { font-size: 15px; line-height: 1.4; }
  .mist-hub .library-hero .hero-proof { margin-top: 12px; }
  .mist-hub .library-hero .library-controls {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--hairline-light);
    border-radius: 16px;
    background: white;
  }
  .mist-hub .search-input-wrap:has(button[hidden]) input { padding-inline-end: 12px; }
}
