/* Light, product-led visual refresh for the standalone Onyx Insights marketing pages. */
:root {
  --refresh-ink: #12243a;
  --refresh-muted: #62748a;
  --refresh-paper: #f4f7fb;
  --refresh-white: #ffffff;
  --refresh-line: #dce5ef;
  --refresh-blue: #4d6fe8;
  --refresh-blue-dark: #3658d4;
  --refresh-cyan: #22a9c7;
  --refresh-mint: #20a985;
  --refresh-amber: #d98a35;
  --refresh-radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  color: var(--refresh-ink);
  background:
    radial-gradient(ellipse at 84% 0%, rgba(97, 137, 238, .11), transparent 30rem),
    var(--refresh-paper);
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

.site-shell {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 22px;
  padding: 14px 18px 14px 22px;
  border: 1px solid rgba(211, 222, 235, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 28px rgba(31, 55, 87, .06);
  backdrop-filter: blur(16px);
}

.brand-lockup { min-width: 0; }
.brand-lockup .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  color: var(--refresh-blue-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.brand-lockup .eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(145deg, var(--refresh-blue), var(--refresh-cyan));
  content: "";
}
.brand-lockup strong {
  display: block;
  max-width: 310px;
  color: var(--refresh-muted);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 550;
  line-height: 1.35;
}

.main-nav { gap: 3px; flex-wrap: nowrap; }
.main-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  background: transparent;
  color: #52647a;
  font-size: .86rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--refresh-blue-dark); background: #eef2ff; }

.topbar-actions { gap: 8px; }
.cta-link,
.ghost-link.strong {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: .86rem;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cta-link {
  color: #fff;
  background: linear-gradient(135deg, var(--refresh-blue), #6486f2);
  box-shadow: 0 7px 16px rgba(77, 111, 232, .19);
}
.cta-link:hover { color: #fff; background: var(--refresh-blue-dark); box-shadow: 0 10px 20px rgba(77, 111, 232, .24); }
.ghost-link.strong {
  border: 1px solid var(--refresh-line);
  color: var(--refresh-ink);
  background: #fff;
}
.ghost-link.strong:hover { color: var(--refresh-blue-dark); border-color: #b8c7f3; background: #f8faff; }

.eyebrow {
  color: var(--refresh-blue-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
  margin-top: 24px;
  padding: clamp(34px, 5.2vw, 76px);
  border: 1px solid #e0e8f2;
  border-radius: 28px;
  color: var(--refresh-ink);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(94, 133, 237, .12), transparent 38%),
    linear-gradient(135deg, #fff 35%, #f6f9ff 100%);
  box-shadow: 0 24px 70px rgba(25, 50, 84, .08);
}

.hero-copy { min-width: 0; }
.hero-copy h1 {
  max-width: 12ch;
  color: var(--refresh-ink);
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.75rem, 5.1vw, 5rem);
  font-weight: 740;
  line-height: 1.03;
  letter-spacing: -.055em;
}
.hero-subpage {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 480px;
}
.hero-subpage .hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(2.5rem, 3.5vw, 3.35rem);
  line-height: 1.06;
}
.hero-subpage .dashboard-stage {
  padding: 16px;
  border: 1px solid #e0e8f2;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f4f7ff);
  box-shadow: 0 20px 44px rgba(30, 52, 83, .1);
}
.hero-subpage .dashboard-card {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #e5ebf4;
  border-radius: 13px;
  background: #fff;
}
.hero-subpage .dashboard-label { color: #78899e; }
.hero-subpage .dashboard-value {
  display: block;
  color: #20354d;
  font-family: inherit;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.22;
}
.hero-subpage .dashboard-note { margin: 12px 0 0; color: var(--refresh-muted); }
.hero-subpage .photo-panel {
  min-height: 360px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background: #eaf0fa;
}
.hero-subpage .hero-photo { position: absolute; inset: 0; }
.lead,
.showcase-card p,
.product-body p,
.feature-list,
.info-card p,
.section-note,
.dashboard-note {
  color: var(--refresh-muted);
  line-height: 1.72;
}
.lead { max-width: 58ch; margin-top: 18px; font-size: 1.04rem; }
.hero-actions { margin-top: 24px; }

.signal-strip {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 28px;
}
.signal-strip article {
  position: relative;
  padding: 10px 14px 10px 37px;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
}
.signal-strip article::before {
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--refresh-mint);
  content: "✓";
  font-size: 9px;
  font-weight: 900;
}
.signal-strip strong { display: block; color: var(--refresh-ink); font-size: .83rem; }
.signal-strip span { display: block; margin-top: 2px; color: var(--refresh-muted); font-size: .76rem; line-height: 1.45; }

/* A small, clearly labelled sample workspace makes the product the hero visual. */
.console-window {
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 58px rgba(35, 57, 91, .16), 0 3px 10px rgba(35, 57, 91, .05);
}
.console-topbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid #e8edf5;
  background: #fff;
}
.console-brand { display: flex; min-width: 0; align-items: center; gap: 9px; }
.console-mark {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--refresh-blue), var(--refresh-cyan));
  font-size: .8rem;
  font-weight: 800;
}
.console-brand strong { color: #23364f; font-size: .79rem; }
.console-workspace { overflow: hidden; margin-left: 5px; color: #91a0b2; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.console-sample {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #cfeee5;
  border-radius: 999px;
  color: #168769;
  background: #f0fbf7;
  font-size: .64rem;
  font-weight: 750;
}
.console-sample i { width: 6px; height: 6px; border-radius: 50%; background: #20ae88; }
.console-layout { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 400px; }
.console-rail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 9px;
  border-right: 1px solid #edf1f6;
  background: #fbfcfe;
}
.console-rail span { display: flex; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 8px; color: #78899d; font-size: .67rem; font-weight: 620; }
.console-rail span i { width: 14px; color: #91a0b2; font-size: .83rem; font-style: normal; text-align: center; }
.console-rail span.is-active { color: #405ecb; background: #edf1ff; }
.console-rail span.is-active i { color: #5573e2; }
.console-main { min-width: 0; padding: 20px 18px 18px; }
.console-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.console-kicker { color: #8090a5; font-size: .59rem; font-weight: 800; letter-spacing: .13em; }
.console-heading h2 { margin: 3px 0 0; color: #192d45; font-family: inherit; font-size: 1.2rem; font-weight: 730; letter-spacing: -.035em; }
.console-range { padding: 7px 9px; border: 1px solid #e0e7f0; border-radius: 8px; color: #6e8097; font-size: .63rem; white-space: nowrap; }
.console-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.console-metrics article { min-width: 0; padding: 11px 10px; border: 1px solid #e6ecf4; border-radius: 11px; background: #fff; }
.console-metrics article > span { display: block; overflow: hidden; color: #72849a; font-size: .63rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.console-metrics strong { display: block; margin: 6px 0 4px; color: #1b3049; font-size: 1.32rem; font-weight: 750; letter-spacing: -.055em; }
.console-metrics small { color: #8392a6; font-size: .7rem; font-weight: 600; letter-spacing: 0; }
.console-metrics em { display: block; overflow: hidden; font-size: .56rem; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.metric-good { color: #168b70; }
.metric-warn { color: #c07827; }
.console-panels { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(145px, .9fr); gap: 9px; margin-top: 9px; }
.console-chart,
.console-incident { min-width: 0; border: 1px solid #e6ecf4; border-radius: 11px; background: #fff; }
.console-chart { padding: 12px 11px 8px; }
.console-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.console-panel-heading strong { display: block; color: #273b54; font-size: .68rem; }
.console-panel-heading div > span { display: block; margin-top: 2px; color: #91a0b2; font-size: .58rem; }
.console-panel-heading > span { color: #7e8fa3; font-size: .57rem; }
.console-chart svg { display: block; width: 100%; height: 112px; margin-top: 8px; overflow: visible; }
.chart-gridline { fill: none; stroke: #edf1f6; stroke-width: 1; }
.chart-area { fill: url(#request-fill); }
.chart-line { fill: none; stroke: #5978e7; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.chart-point { fill: #fff; stroke: #5978e7; stroke-width: 3; }
.console-axis { display: flex; justify-content: space-between; color: #a0adbd; font-size: .52rem; }
.console-incident { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 11px 10px; background: linear-gradient(155deg, #fff, #f9faff); }
.incident-heading { display: flex; align-items: center; gap: 6px; color: #bf7b2c; font-size: .54rem; font-weight: 800; letter-spacing: .09em; }
.incident-pulse { width: 7px; height: 7px; border-radius: 50%; background: #e89b42; box-shadow: 0 0 0 3px rgba(232, 155, 66, .13); }
.console-incident > strong { margin-top: 12px; color: #243a54; font-size: .77rem; line-height: 1.3; }
.console-incident p { margin: 5px 0 10px; color: #75869b; font-size: .59rem; line-height: 1.45; }
.incident-connection { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.incident-connection span { padding: 4px 5px; border: 1px solid #e4eaf2; border-radius: 5px; color: #63758a; background: white; font-size: .49rem; }
.incident-connection b { color: #a8b4c2; font-size: .62rem; }
.incident-connection .connection-alert { color: #bd7024; border-color: #f1dfc8; background: #fff8ed; }
.incident-sample-note { margin-top: 11px; color: #a0adbd; font-size: .52rem; }

.section {
  margin-top: 0;
  padding: clamp(58px, 7.2vw, 96px) clamp(12px, 4vw, 56px);
}
.section-header { gap: 28px; margin-bottom: 24px; }
.section-header h2 {
  max-width: 19ch;
  color: var(--refresh-ink);
  font-family: inherit;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.05em;
}
.section-header.compact h2 { max-width: 24ch; }
.section-note { margin: 0; color: var(--refresh-muted); font-size: .94rem; }
.showcase-grid { gap: 14px; }
.showcase-card,
.product-card,
.info-card {
  overflow: hidden;
  border: 1px solid #e0e8f1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 52, 83, .035);
}
.showcase-card { padding: 13px; }
.showcase-card strong { display: block; color: #20354d; font-size: .98rem; line-height: 1.4; }
.showcase-card p { margin: 7px 0 3px; font-size: .85rem; }
.showcase-image { height: 180px; margin-bottom: 15px; border: 0; border-radius: 11px; background: #edf2fa; }
.product-stack { gap: 16px; }
.product-card.featured { grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); }
.card-visual { min-height: 310px; background: #edf2ff; }
.card-visual::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(73, 106, 222, .11), transparent 58%), url("./assets/observability-grid.svg") center / cover;
  content: "";
}
.card-visual-image,
.product-visual-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 310px;
  height: 100%;
  object-fit: cover;
  opacity: .8;
  mix-blend-mode: multiply;
}
.media-visual { background: #eaf0fa; }
.media-visual::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 42, 69, .03), rgba(22, 42, 69, .25));
  content: "";
}
.card-visual::after { z-index: 2; background: linear-gradient(180deg, rgba(18, 36, 58, .02), rgba(18, 36, 58, .14)); }
.visual-badge { z-index: 3; border: 1px solid rgba(221, 230, 241, .9); color: #425a78; background: rgba(255, 255, 255, .88); box-shadow: 0 4px 12px rgba(28, 49, 82, .08); }
.product-body { padding: clamp(22px, 3.2vw, 38px); }
.product-body h3,
.info-card h3 {
  color: var(--refresh-ink);
  font-family: inherit;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 710;
  line-height: 1.16;
  letter-spacing: -.04em;
}
.product-body .eyebrow { margin-bottom: 10px; }
.product-body p { margin: 13px 0 0; font-size: .9rem; }
.feature-list { display: grid; gap: 9px; margin-top: 18px; padding: 0; list-style: none; font-size: .86rem; }
.feature-list li { position: relative; padding-left: 25px; }
.feature-list li::before { position: absolute; left: 0; top: 1px; color: var(--refresh-mint); content: "✓"; font-weight: 900; }
.split { gap: 14px; }
.info-card { padding: clamp(22px, 3vw, 34px); }
.info-card .eyebrow { margin-bottom: 12px; }
.info-card h3 { font-size: clamp(1.25rem, 2vw, 1.8rem); }
.info-card p { margin: 12px 0 0; font-size: .88rem; }
.info-card.highlight { border-color: #d8e2ff; background: linear-gradient(145deg, #fff, #f3f6ff); }

.closing-band {
  gap: 30px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #263d63;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse at 88% 10%, rgba(81, 128, 240, .28), transparent 38%),
    linear-gradient(125deg, #142844, #1a3150);
  box-shadow: 0 22px 52px rgba(22, 43, 72, .15);
}
.closing-band .eyebrow { color: #9db4ff; }
.closing-band h2 { max-width: 17ch; color: #fff; font-family: inherit; font-size: clamp(2rem, 3.4vw, 3.15rem); font-weight: 720; line-height: 1.08; letter-spacing: -.045em; }
.closing-band .lead { max-width: 72ch; margin-bottom: 0; color: #c4d0e1; font-size: .94rem; }
.closing-band .ghost-link.strong { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.closing-band .ghost-link.strong:hover { background: rgba(255, 255, 255, .12); }

.site-footer {
  gap: 24px;
  margin-top: 24px;
  padding: 27px 10px 0;
  border-top: 1px solid #dce5ef;
  color: var(--refresh-muted);
}
.site-footer .eyebrow { color: var(--refresh-blue-dark); }
.site-footer strong { color: #324861; font-family: inherit; font-size: .92rem; font-weight: 600; }
.footer-links { gap: 8px 17px; }
.footer-links a { color: #60738a; font-size: .82rem; }
.footer-links a:hover { color: var(--refresh-blue-dark); }

a:focus-visible,
button:focus-visible { outline: 3px solid rgba(77, 111, 232, .62); outline-offset: 3px; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-subpage { min-height: 0; }
  .hero-copy h1 { max-width: 15ch; }
  .signal-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signal-strip article { padding-right: 10px; }
  .signal-strip span { font-size: .7rem; }
}

@media (max-width: 760px) {
  .site-shell { width: min(100% - 24px, 640px); padding-top: 10px; }
  .topbar { position: static; grid-template-columns: 1fr; gap: 11px; padding: 14px; border-radius: 15px; }
  .main-nav { grid-column: auto; grid-row: auto; flex-direction: row; gap: 2px; overflow-x: auto; padding-bottom: 2px; }
  .main-nav a { padding: 8px 10px; font-size: .78rem; }
  .topbar-actions { flex-direction: row; align-items: center; }
  .topbar-actions > * { flex: 1; }
  .topbar-actions .ghost-link { font-size: .78rem; }
  .hero { gap: 28px; margin-top: 14px; padding: 27px 20px 22px; border-radius: 20px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-subpage .hero-copy h1 { max-width: 19ch; font-size: clamp(2.35rem, 9vw, 3.6rem); }
  .lead { font-size: .96rem; }
  .signal-strip { grid-template-columns: 1fr; margin-top: 23px; }
  .signal-strip span { font-size: .75rem; }
  .console-layout { grid-template-columns: 1fr; }
  .console-rail { display: none; }
  .console-main { padding: 15px 12px 12px; }
  .console-workspace { display: none; }
  .console-panels { grid-template-columns: minmax(0, 1.2fr) minmax(115px, .8fr); }
  .section { padding: 58px 3px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card { display: grid; grid-template-columns: minmax(105px, .72fr) minmax(0, 1.28fr); align-items: center; gap: 13px; padding: 11px; }
  .showcase-image { height: 100%; min-height: 102px; margin: 0; }
  .showcase-card p { font-size: .78rem; }
  .product-card.featured { grid-template-columns: 1fr; }
  .card-visual, .card-visual-image, .product-visual-image { min-height: 210px; max-height: 240px; }
  .section-header { grid-template-columns: 1fr; gap: 12px; }
  .closing-band { grid-template-columns: 1fr; padding: 27px 21px; }
  .closing-band .product-actions { flex-direction: column; align-items: stretch; }
  .site-footer { grid-template-columns: 1fr; align-items: start; padding-top: 22px; }
  .footer-links { flex-direction: row; }
}

@media (max-width: 480px) {
  .topbar-actions .ghost-link { padding-inline: 9px; }
  .topbar-actions .cta-link { padding-inline: 10px; font-size: .76rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions > * { width: 100%; }
  .console-topbar { padding-inline: 10px; }
  .console-main { padding-inline: 9px; }
  .console-metrics { grid-template-columns: 1fr; }
  .console-metrics article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 8px 9px; }
  .console-metrics article > span { grid-column: 1; }
  .console-metrics strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 1.1rem; }
  .console-metrics em { grid-column: 1; }
  .console-panels { grid-template-columns: 1fr; }
  .console-chart svg { height: 96px; }
  .console-incident { min-height: 142px; }
  .showcase-card { grid-template-columns: 90px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Click-through product walkthrough: a lightweight, keyboard-friendly alternative to a video. */
.tour-section-header { align-items: end; }
.tour-section-header h2 { max-width: 19ch; }
.tour-section-header .section-note { max-width: 42ch; margin: 0; }
.tour-player {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(25, 50, 84, .1);
}
.tour-player-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid #e6edf5;
  background: linear-gradient(90deg, #fff, #fbfcff);
}
.tour-product-lockup { display: flex; min-width: 0; align-items: center; gap: 10px; }
.tour-product-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--refresh-blue), var(--refresh-cyan));
  font-size: .94rem;
  font-weight: 800;
}
.tour-product-lockup strong, .tour-product-lockup small { display: block; }
.tour-product-lockup strong { color: #20354d; font-size: .84rem; }
.tour-product-lockup small { margin-top: 2px; color: #8695a8; font-size: .68rem; }
.tour-mode, .tour-sample-label { display: inline-flex; align-items: center; gap: 8px; color: #73849a; font-size: .72rem; font-weight: 650; }
.tour-mode i, .tour-screen-status i, .tour-screen-foot > span:first-child i { width: 7px; height: 7px; border-radius: 50%; background: var(--refresh-mint); }
.tour-player-body { display: grid; grid-template-columns: minmax(235px, .72fr) minmax(0, 1.75fr); }
.tour-guide { display: flex; flex-direction: column; padding: 22px; border-right: 1px solid #e7edf5; }
.tour-chapters { display: grid; gap: 7px; }
.tour-chapter {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #50647d;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.tour-chapter:hover { transform: translateX(2px); background: #f6f8fe; }
.tour-chapter.is-active { border-color: #dce4ff; color: #2d4fba; background: #f1f4ff; }
.tour-chapter-number { color: #94a2b4; font-size: .69rem; font-weight: 800; letter-spacing: .04em; }
.tour-chapter.is-active .tour-chapter-number { color: var(--refresh-blue-dark); }
.tour-chapter-copy { min-width: 0; }
.tour-chapter-copy strong, .tour-chapter-copy small { display: block; }
.tour-chapter-copy strong { color: #30445e; font-size: .79rem; font-weight: 730; }
.tour-chapter.is-active .tour-chapter-copy strong { color: #2f4fb5; }
.tour-chapter-copy small { margin-top: 3px; color: #8493a6; font-size: .64rem; line-height: 1.4; }
.tour-chapter-arrow { color: #9aa8ba; font-size: .83rem; opacity: 0; transition: opacity .18s ease; }
.tour-chapter:hover .tour-chapter-arrow, .tour-chapter.is-active .tour-chapter-arrow { opacity: 1; }
.tour-narration { margin-top: auto; padding: 26px 5px 17px; }
.tour-narration-kicker, .tour-screen-kicker { color: var(--refresh-blue-dark); font-size: .62rem; font-weight: 820; letter-spacing: .13em; }
.tour-narration h3 { margin: 9px 0 7px; color: #1d3048; font-size: 1.15rem; letter-spacing: -.035em; }
.tour-narration p { min-height: 4.6em; margin: 0; color: #6c7d92; font-size: .79rem; line-height: 1.65; }
.tour-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-play-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--refresh-blue), #6486f2);
  box-shadow: 0 6px 15px rgba(77, 111, 232, .17);
  font-size: .73rem;
  font-weight: 720;
  cursor: pointer;
}
.tour-play-button:hover { background: var(--refresh-blue-dark); }
.tour-play-icon { display: grid; width: 15px; place-items: center; font-size: .67rem; }
.tour-step-controls { display: flex; gap: 6px; }
.tour-step-controls button {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  color: #405571;
  background: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}
.tour-step-controls button:hover { border-color: #b9c8f3; color: var(--refresh-blue-dark); background: #f7f9ff; }
.tour-progress-track { height: 4px; overflow: hidden; margin-top: 17px; border-radius: 99px; background: #e9eef6; }
.tour-progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--refresh-blue), var(--refresh-cyan)); transition: width .28s ease; }
.tour-screen { min-width: 0; padding: 17px; background: #f5f7fb; }
.tour-screen-topbar { display: flex; height: 37px; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #e0e7f0; border-bottom: 0; border-radius: 12px 12px 0 0; color: #9aa7b7; background: #fff; font-size: .61rem; }
.tour-window-dots { display: flex; gap: 4px; }
.tour-window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #e2e7ef; }
.tour-screen-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #7b8ba0; font-size: .58rem; white-space: nowrap; }
.tour-screen-status i { width: 6px; height: 6px; }
.tour-screen-content { padding: clamp(15px, 2.3vw, 26px); border: 1px solid #e0e7f0; border-radius: 0 0 12px 12px; background: #fff; }
.tour-screen-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.tour-screen-heading h3 { margin: 4px 0 0; color: #1c3049; font-size: 1.28rem; font-weight: 750; letter-spacing: -.04em; }
.tour-time-range { padding: 7px 9px; border: 1px solid #e2e8f0; border-radius: 8px; color: #708198; font-size: .61rem; white-space: nowrap; }
.tour-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tour-metrics article { min-width: 0; padding: 10px; border: 1px solid #e7ecf3; border-radius: 10px; background: #fff; }
.tour-metrics article > span { display: block; overflow: hidden; color: #7a8ba0; font-size: .62rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.tour-metrics article > strong { display: block; margin: 6px 0 3px; color: #1d324b; font-size: 1.2rem; font-weight: 760; letter-spacing: -.055em; white-space: nowrap; }
.tour-metrics article > strong small { margin-left: 2px; color: #8997a9; font-size: .68rem; font-weight: 600; letter-spacing: 0; }
.tour-metrics article > em { display: block; overflow: hidden; font-size: .55rem; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.tour-metrics article > em.is-good { color: #138563; }
.tour-metrics article > em.is-warn { color: #c17a27; }
.tour-screen-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(180px, .85fr); gap: 9px; margin-top: 9px; }
.tour-chart-card, .tour-insight-card { min-width: 0; border: 1px solid #e7ecf3; border-radius: 10px; }
.tour-chart-card { padding: 11px 11px 8px; }
.tour-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.tour-card-heading strong, .tour-card-heading span { display: block; }
.tour-card-heading strong { color: #31465f; font-size: .68rem; }
.tour-card-heading div > span { margin-top: 3px; color: #91a0b2; font-size: .57rem; }
.tour-card-heading > span { color: #91a0b2; font-size: .56rem; }
.tour-chart-card svg { display: block; width: 100%; height: 105px; margin-top: 4px; }
.tour-chart-grid { fill: none; stroke: #edf1f6; stroke-width: 1; }
.tour-chart-area { fill: url(#request-fill); fill: rgba(77, 111, 232, .09); }
.tour-chart-line { fill: none; stroke: #5f7ee7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: d .24s ease; }
.tour-chart-axis { display: flex; justify-content: space-between; color: #a0adbd; font-size: .51rem; }
.tour-insight-card { position: relative; padding: 12px; background: linear-gradient(150deg, #fff, #f7f9ff); }
.tour-insight-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #4d6fe8; background: #edf1ff; font-size: .82rem; }
.tour-insight-label { display: block; margin-top: 11px; color: #8493a7; font-size: .52rem; font-weight: 800; letter-spacing: .1em; }
.tour-insight-card h4 { margin: 5px 0 4px; color: #263b55; font-size: .78rem; line-height: 1.3; }
.tour-insight-card p { margin: 0; color: #78899e; font-size: .61rem; line-height: 1.52; }
.tour-service-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 12px; }
.tour-service-node { padding: 5px 7px; border: 1px solid #e3e9f2; border-radius: 6px; color: #64758b; background: #fff; font-size: .51rem; font-weight: 650; }
.tour-service-node.is-highlighted { border-color: #f1d6b5; color: #a8661b; background: #fff8ef; }
.tour-service-arrow { color: #a2afbf; font-size: .63rem; }
.tour-screen-foot { display: flex; min-height: 31px; align-items: center; gap: 10px; margin-top: 7px; color: #96a3b4; font-size: .56rem; }
.tour-screen-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.tour-screen-foot > span:first-child i { width: 6px; height: 6px; background: #a6b5c6; }
.tour-screen-foot button { margin-left: auto; padding: 6px 9px; border: 1px solid #dce5ef; border-radius: 7px; color: #4a63bb; background: #fff; font-size: .59rem; font-weight: 700; cursor: pointer; }
.tour-screen-foot button:hover { border-color: #b9c8f3; background: #f7f9ff; }
.tour-screen-foot [hidden] { display: none !important; }

@media (max-width: 980px) {
  .tour-player-body { grid-template-columns: minmax(210px, .75fr) minmax(0, 1.5fr); }
  .tour-guide { padding: 16px; }
  .tour-screen { padding: 12px; }
  .tour-screen-grid { grid-template-columns: 1fr; }
  .tour-insight-card { min-height: 145px; }
}
@media (max-width: 760px) {
  .tour-player-topbar { min-height: 58px; padding: 11px 14px; }
  .tour-sample-label { display: none; }
  .tour-player-body { grid-template-columns: 1fr; }
  .tour-guide { padding: 15px; border-right: 0; border-bottom: 1px solid #e7edf5; }
  .tour-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-chapter { min-height: 55px; grid-template-columns: 25px minmax(0, 1fr); gap: 7px; padding: 8px; }
  .tour-chapter-arrow { display: none; }
  .tour-narration { padding: 18px 3px 13px; }
  .tour-narration p { min-height: 0; }
  .tour-progress-track { margin-top: 13px; }
  .tour-screen { padding: 11px; }
  .tour-screen-grid { grid-template-columns: minmax(0, 1.2fr) minmax(140px, .8fr); }
  .tour-insight-card { min-height: 0; }
  .tour-section-header { align-items: start; }
}
@media (max-width: 480px) {
  .tour-player-topbar { gap: 8px; }
  .tour-mode { font-size: .63rem; }
  .tour-screen { padding: 8px; }
  .tour-screen-topbar { padding-inline: 8px; font-size: .53rem; }
  .tour-screen-status { font-size: .5rem; }
  .tour-screen-content { padding: 12px 9px; }
  .tour-screen-heading h3 { font-size: 1.1rem; }
  .tour-time-range { padding: 6px; font-size: .54rem; }
  .tour-metrics { grid-template-columns: 1fr; }
  .tour-metrics article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0 8px; padding: 8px 9px; }
  .tour-metrics article > span, .tour-metrics article > em { grid-column: 1; }
  .tour-metrics article > strong { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .tour-screen-grid { grid-template-columns: 1fr; }
  .tour-chart-card svg { height: 93px; }
  .tour-insight-card { min-height: 145px; }
  .tour-screen-foot { align-items: flex-start; flex-wrap: wrap; }
}
