/* Shared presentation for the homepage and Premium Access platform tour. */
.dashboard-preview.hero-tour {
    container: hero-tour / inline-size;
    border-radius: 18px;
    background: var(--surface-card);
    color: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    text-align: left;
}
.hero-tour .dashboard-chrome {
    min-height: 64px;
    padding: 14px 24px;
    gap: 20px;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-light);
}
.hero-tour .tour-logo { display: block; width: 106px; height: auto; flex-shrink: 0; }
.hero-tour .tour-product { font-size: 14px; font-weight: 600; color: var(--white); border-left: 1px solid var(--border-light); padding-left: 20px; }
.hero-tour .tour-preview-label { margin-left: auto; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.hero-tour .dashboard-body { height: 564px; }
.hero-tour .dashboard-sidebar { width: 158px; padding: 20px 10px; gap: 5px; background: var(--surface-card); }
.hero-tour .sidebar-menu-label { padding: 0 12px 12px; opacity: 1; font-size: 10px; color: var(--text-faint); }
.hero-tour .sidebar-icon { height: 39px; padding: 0 12px; gap: 10px; font-size: 12px; color: var(--text-light); border-radius: 7px; }
.hero-tour .sidebar-icon.active { background: var(--blue-light); color: var(--blue-ink); font-weight: 600; }
.hero-tour .sidebar-icon:hover { background: var(--navy-light); color: var(--blue-ink); }
.hero-tour .sidebar-icon svg { width: 16px; height: 16px; }
.hero-tour .sidebar-progress { display: none; }
.hero-tour .dashboard-main { padding: 22px 26px; background: var(--navy-light); }
/* The pointer is placed every frame by the tour script, so it carries no transform transition. */
.hero-tour .dash-cursor { transition: opacity .2s ease; }
.hero-tour .dash-cursor-ring { background: radial-gradient(circle, color-mix(in srgb, var(--blue) 22%, transparent), transparent 70%); } /* theme-guardrail-allow: translucent accents derived from semantic theme tokens */
.hero-tour .dash-cursor-arrow { filter: drop-shadow(0 1px 2px var(--border-mid)); }
.hero-tour .dash-cursor-ripple { border-color: var(--blue); }
.hero-tour .dash-cursor.press .dash-cursor-arrow { transform: scale(.86); }

/* A calmer map lets the selected ecosystem carry the emphasis. */
.hero-tour .gmap {
    --gmap-ocean1: var(--surface-card);
    --gmap-ocean2: var(--navy-light);
    --gmap-land: var(--surface-data);
    --gmap-land-stroke: color-mix(in srgb, var(--text-cool) 22%, var(--surface-data)); /* theme-guardrail-allow: translucent accents derived from semantic theme tokens */
    --gmap-accent: var(--blue);
    --gmap-accent2: var(--orange-accent);
    gap: 16px;
}
.hero-tour .gmap-head { display: grid; grid-template-columns: 1fr auto; gap: 3px 24px; align-items: center; }
.hero-tour .gmap-head .sec-badge { grid-column: 1; justify-self: start; padding: 0; background: none; color: var(--eyebrow); font-size: 10px; letter-spacing: .08em; }
.hero-tour .gmap-title { grid-column: 1; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.hero-tour .gmap-meta { display: none; }
.hero-tour .gmap-kpis { grid-column: 2; grid-row: 1 / 3; gap: 24px; margin: 0; }
.hero-tour .gmap-kpi strong { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero-tour .gmap-kpi span { display: block; margin-top: 5px; font-size: 9px; color: var(--text-faint); letter-spacing: .025em; }
.hero-tour .gmap-wrap { flex: 1; }
.hero-tour .gmap-canvas { aspect-ratio: 760 / 310; max-height: none; border: 1px solid var(--border-light); border-radius: 10px; box-shadow: none; }
.hero-tour .gmap-canvas::after { box-shadow: none; }
.hero-tour .gmap-grat { stroke: var(--border-light); opacity: .35; }
.hero-tour .gmap-hot.t1 { width: 5px; height: 5px; }
.hero-tour .gmap-hot.t2 { width: 8px; height: 8px; }
.hero-tour .gmap-hot .gmap-dot { box-shadow: 0 0 0 1.5px var(--surface-card); }
.hero-tour .gmap-hot:not(.is-hero) .gmap-glow { display: none; }
.hero-tour .gmap-hot.is-hero { width: 16px; height: 16px; }
.hero-tour .gmap-hot.is-hero .gmap-dot { box-shadow: 0 0 0 3px var(--surface-card), 0 0 0 5px color-mix(in srgb, var(--gmap-accent2) 20%, transparent); } /* theme-guardrail-allow: translucent accents derived from semantic theme tokens */
.hero-tour .gmap-hot.is-hero .gmap-glow { width: 46px; height: 46px; opacity: .32; }
.hero-tour .gmap-lbl { font-size: 10px; font-weight: 500; color: var(--text-light); background: var(--surface-card); box-shadow: none; padding: 2px 5px; border-radius: 4px; margin-top: 5px; }
.hero-tour .gmap-hot.is-hero .gmap-lbl { font-size: 11px; font-weight: 700; padding: 3px 7px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gmap-accent2) 30%, transparent); } /* theme-guardrail-allow: translucent accents derived from semantic theme tokens */
.hero-tour .gmap-hot[aria-label="London"]:not(.is-hero) .gmap-lbl { left: -8px; transform: translateX(-100%); top: 0; }
.hero-tour .gmap-hot[aria-label="Stockholm"]:not(.is-hero) .gmap-lbl { top: auto; bottom: calc(100% + 5px); }
.hero-tour .gmap-hot[aria-label="Munich"]:not(.is-hero) .gmap-lbl { left: calc(100% + 5px); top: 5px; transform: none; }
.hero-tour .gmap-hot[aria-label="Boston"]:not(.is-hero) .gmap-lbl { left: calc(100% + 5px); top: -20px; transform: none; }
.hero-tour .gmap-hot[aria-label="Seattle"]:not(.is-hero) .gmap-lbl { left: -6px; transform: translateX(-100%); top: -12px; }
.hero-tour .gmap-foot { gap: 8px; }
.hero-tour .gmap-live { display: none; }
.hero-tour .gmap-hint { color: var(--text-faint); font-size: 11px; }

/* Keep the takeaway and controls outside the moving data canvas. */
.hero-tour .tour-footer { position: relative; display: flex; align-items: center; gap: 24px; min-height: 96px; padding: 20px 24px; border-top: 1px solid var(--border-light); background: var(--surface-card); }
.hero-tour .tour-takeaway { flex: 1; min-width: 0; }
.hero-tour .tour-takeaway.is-swap { animation: tourRise .42s var(--tour-ease) backwards; }
.hero-tour .tour-title { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; color: var(--white); }
.hero-tour .tour-new { flex-shrink: 0; margin-top: 4px; padding: 3px 7px; border-radius: 999px; background: var(--blue-light); color: var(--blue-ink); font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.hero-tour .tour-new[hidden] { display: none; }
.hero-tour .tour-description { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-light); }
.hero-tour .tour-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.hero-tour .dash-fwd { position: static; opacity: 1; gap: 10px; }
.hero-tour .tour-count { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-faint); white-space: nowrap; }
.hero-tour .tour-pause, .hero-tour .dash-fwd-btn { height: 34px; padding: 0 10px; border: 1px solid var(--border-light); border-radius: 6px; background: var(--surface-card); box-shadow: none; color: var(--text-light); font: inherit; font-size: 12px; cursor: pointer; }
.hero-tour .tour-pause { width: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.hero-tour .tour-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero-tour .tour-pause .tour-play-icon { display: none; }
.hero-tour .tour-pause[aria-pressed="true"] .tour-play-icon { display: block; }
.hero-tour .tour-pause[aria-pressed="true"] .tour-pause-icon { display: none; }
.hero-tour .tour-pause:hover, .hero-tour .dash-fwd-btn:hover { background: var(--navy-light); color: var(--blue-ink); transform: none; box-shadow: none; }
.hero-tour .tour-access { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 0 16px; border-radius: 7px; color: var(--text-on-inverse); background: var(--blue); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hero-tour .tour-access:hover { background: var(--blue-hover); }
.hero-tour :is(button, a):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Chapter rail: one segment per screen, sitting on the footer's top edge. The
   current one fills as its screen plays; any of them jumps to its screen. */
.hero-tour .tour-rail { position: absolute; left: 0; right: 0; top: -8px; z-index: 5; display: flex; gap: 4px; padding: 0 24px; }
.hero-tour .tour-seg { position: relative; flex: 1; height: 15px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-tour .tour-seg::before, .hero-tour .tour-seg i { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 3px; border-radius: 2px; transition: top .15s ease, height .15s ease; }
.hero-tour .tour-seg::before { background: var(--surface-data); }
.hero-tour .tour-seg.is-api::before { background: var(--blue-light); }
.hero-tour .tour-seg i { background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.hero-tour .tour-seg.is-done i { transform: none; }
.hero-tour .tour-seg:is(:hover, :focus-visible)::before, .hero-tour .tour-seg:is(:hover, :focus-visible) i { top: 5px; height: 5px; }
.hero-tour .tour-seg span { position: absolute; left: 50%; bottom: 17px; translate: -50% 4px; padding: 4px 8px; border-radius: 6px; background: var(--surface-inverse); color: var(--text-on-inverse); font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease, translate .15s ease; }
.hero-tour .tour-seg:is(:hover, :focus-visible) span { opacity: 1; translate: -50% 0; }
.hero-tour .tour-seg:first-child span { left: 0; translate: 0 4px; }
.hero-tour .tour-seg:first-child:is(:hover, :focus-visible) span { translate: 0 0; }
.hero-tour .tour-seg:last-child span { left: auto; right: 0; translate: 0 4px; }
.hero-tour .tour-seg:last-child:is(:hover, :focus-visible) span { translate: 0 0; }

/* The API sits last in the sidebar, set apart and flagged as new. */
.hero-tour .sidebar-sep { height: 1px; margin: 6px 12px; background: var(--border-light); flex-shrink: 0; }
.hero-tour .sidebar-new { margin-left: auto; padding: 2px 6px; border-radius: 999px; background: var(--blue-light); color: var(--blue-ink); font-size: 9px; font-weight: 700; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
.hero-tour .sidebar-icon.is-target { background: var(--navy-light); color: var(--blue-ink); }

/* Motion. Each screen builds itself when it opens: the tour script tags the
   parts (.t-rise, .t-pop, .t-grow, .t-wipe, .t-seg) with a delay in --d, and
   .tour-in on the view starts them. The keyframes declare only a `from`, so
   every part lands on its own resting style, and they use the individual
   translate/scale properties so a part that already has a transform (map pins,
   hubs) keeps it. */
.hero-tour { --tour-ease: cubic-bezier(.2, .8, .2, 1); --tour-spring: cubic-bezier(.34, 1.45, .5, 1); }
.hero-tour .dash-view.tour-out { opacity: 0; translate: 0 -6px; transition: opacity .14s ease-in, translate .14s ease-in; }
.hero-tour .tour-in .t-rise { animation: tourRise .5s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-fade { animation: tourFade .45s ease calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-pop { animation: tourPop .46s var(--tour-spring) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-left { animation: tourLeft .5s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-right { animation: tourRight .5s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-grow { transform-origin: left center; animation: tourGrow .7s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-up { transform-origin: center bottom; animation: tourUp .6s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-wipe { animation: tourWipe .85s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-seg { animation: tourSeg .5s ease-out calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-tile { animation: tourTile .42s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-radar { transform-box: view-box; transform-origin: 84px 60px; animation: tourPop .6s var(--tour-ease) calc(var(--d, 0) * 1ms) backwards; }
.hero-tour .tour-in .t-zoom { animation: tourZoom .6s var(--tour-ease) backwards; }
@keyframes tourRise { from { opacity: 0; translate: 0 10px; } }
@keyframes tourFade { from { opacity: 0; } }
@keyframes tourPop { from { opacity: 0; scale: .4; } }
@keyframes tourLeft { from { opacity: 0; translate: -16px 0; } }
@keyframes tourRight { from { opacity: 0; translate: 16px 0; } }
@keyframes tourGrow { from { scale: 0 1; } }
@keyframes tourUp { from { scale: 1 0; } }
@keyframes tourWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tourSeg { from { stroke-dasharray: 0 326.7; } }
@keyframes tourTile { from { opacity: 0; scale: .9; } }
@keyframes tourZoom { from { opacity: 0; scale: 1.14; } }

/* What the pointer is on, and what it is asking about. */
.hero-tour .srch-bar { transition: border-color .2s ease, box-shadow .2s ease; }
.hero-tour .srch-bar.is-focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-light), var(--shadow-md); }
.hero-tour .srch-chip { animation: tourPop .3s var(--tour-spring) backwards; }
.hero-tour .srch-default { transition: opacity .14s ease; }
.hero-tour .srch-table.is-swapping .srch-default { opacity: 0; }
.hero-tour .srch-sigbar i { transform-origin: left center; transition: scale .7s var(--tour-ease) .12s; }
.hero-tour .srch-table tbody tr:not(.revealed) .srch-sigbar i { scale: 0 1; transition: none; }
.hero-tour .inv-row { transition: background .18s ease; }
.hero-tour .inv-row.is-target { background: var(--blue-light); border-radius: 9px; }
.hero-tour .sec-cell { transition: translate .2s var(--tour-ease), box-shadow .2s ease; }
.hero-tour .sec-cell.is-target { z-index: 3; translate: 0 -2px; box-shadow: var(--shadow-md); }
.hero-tour .news-filter.is-target, .hero-tour .eco-all.is-target { border-color: var(--blue); }
.hero-tour .eco-layer.is-target { border-color: var(--eco-color); background: var(--navy-light); }
.hero-tour .ntl-card { transition: border-color .2s ease, box-shadow .2s ease, translate .2s var(--tour-ease); }
.hero-tour .ntl-card.is-target { border-color: var(--blue); box-shadow: var(--shadow-md); translate: 0 -2px; }
.hero-tour :is(.sec-cta, .api-cta, .eco-layer, .eco-all, .news-filter, .cp-sector-link).is-press { scale: .97; }
.hero-tour .tour-tip { position: absolute; left: 0; top: 0; z-index: 58; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 8px; background: var(--surface-inverse); color: var(--text-on-inverse); box-shadow: var(--shadow-md); font-size: 11px; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0; scale: .96; transform-origin: center bottom; transition: opacity .16s ease, scale .16s ease; }
.hero-tour .tour-tip.is-on { opacity: 1; scale: 1; }
.hero-tour .tour-tip b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-tour .tour-tip span { color: var(--text-on-inverse-muted); }
.hero-tour .tour-tip em { font-style: normal; font-weight: 700; color: var(--ecosystem-capital); }
.hero-tour .tour-dot { position: absolute; left: 0; top: 0; z-index: 57; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--blue); border: 2px solid var(--surface-card); box-shadow: 0 0 0 4px var(--blue-light); pointer-events: none; opacity: 0; transition: opacity .16s ease; }
.hero-tour .tour-dot.is-on { opacity: 1; }
.hero-tour.flow-paused :is(.tour-tip, .tour-dot) { opacity: 0; }

/* API chapter, screen one: a request, its response, and the same rows as records.
   Everything is visible by default; .is-staged is what the tour adds to play it
   in, so a manual visit or a stopped tour always shows the finished screen. */
.hero-tour .api { height: 100%; display: flex; flex-direction: column; gap: 14px; }
.hero-tour .api-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.hero-tour .api-eyebrow, .hero-tour .wf-label { display: inline-flex; align-items: center; gap: 6px; color: var(--eyebrow); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-tour .api-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--status-positive); }
.hero-tour .api-title { margin-top: 3px; color: var(--white); font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.hero-tour .api-modes { display: flex; gap: 6px; flex-shrink: 0; }
.hero-tour .api-mode { padding: 4px 10px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--surface-card); color: var(--text-light); font-size: 11px; font-weight: 600; white-space: nowrap; }
.hero-tour .api-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.hero-tour .api-code { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 12px; background: var(--surface-inverse); color: var(--text-on-inverse); box-shadow: var(--shadow-md); }
.hero-tour .api-code-bar { display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; border-bottom: 1px solid var(--border-on-inverse); color: var(--text-on-inverse-muted); font-size: 11px; font-weight: 600; }
.hero-tour .api-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ecosystem-capital); font-variant-numeric: tabular-nums; transition: opacity .2s ease, translate .2s var(--tour-ease); }
.hero-tour .api-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero-tour .api-run { padding: 4px 11px; border-radius: 6px; background: var(--blue); color: var(--text-on-inverse); font-weight: 600; line-height: 1.3; transition: background .15s ease, scale .1s ease; }
.hero-tour .api-run.is-target { background: var(--blue-hover); }
.hero-tour .api-run.is-press { scale: .93; }
.hero-tour .api-code pre { margin: 0; padding: 12px 14px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; white-space: pre; overflow: hidden; }
.hero-tour .api-req { flex-shrink: 0; min-height: 4.8em; border-bottom: 1px solid var(--border-on-inverse); background: var(--surface-inverse-raised); box-sizing: content-box; }
.hero-tour .api-verb { color: var(--ecosystem-capital); font-weight: 700; }
.hero-tour .api-caret { display: none; width: 6px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--accent-on-inverse); animation: srchBlink 1s step-end infinite; }
.hero-tour .api-res { flex: 1; min-height: 0; color: var(--text-on-inverse-muted); }
.hero-tour .api-res .k { color: var(--accent-on-inverse); }
.hero-tour .api-res .s { color: var(--ecosystem-capital); }
.hero-tour .api-res .n { color: var(--ecosystem-university); }
.hero-tour .api-ln { display: block; transition: opacity .18s ease, translate .18s var(--tour-ease); }
.hero-tour .api-out { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.hero-tour .api-out-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--text-faint); font-size: 11px; }
.hero-tour .api-out-t { color: var(--white); font-size: 13px; font-weight: 700; }
.hero-tour .api-cards { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-tour .api-card { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-card); box-shadow: var(--shadow-sm); transition: opacity .3s ease, translate .42s var(--tour-ease); }
.hero-tour .api-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-data); }
.hero-tour .api-card-b { flex: 1; min-width: 0; }
.hero-tour .api-card-n { display: flex; align-items: center; gap: 7px; overflow: hidden; color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.hero-tour .api-tag { padding: 2px 6px; border-radius: 5px; background: rgba(var(--tag-jf), .12); color: rgb(var(--tag-jf)); font-size: 9px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; } /* theme-guardrail-allow: tint built from the just-founded tag token */
.hero-tour .api-card-m { margin-top: 2px; color: var(--text-light); font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tour .api-card-f { margin-top: 3px; color: var(--white); font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tour .api-card-f span { color: var(--text-faint); }
.hero-tour .api-sig { flex-shrink: 0; text-align: right; }
.hero-tour .api-sig strong { display: block; color: var(--blue-ink); font-size: 18px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-tour .api-sig span { display: block; margin-top: 3px; color: var(--text-faint); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.hero-tour .api-foot { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hero-tour .api-foot-l { color: var(--text-faint); font-size: 11px; white-space: nowrap; }
.hero-tour .api-tools { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.hero-tour .api-tools img { display: block; height: 24px; width: auto; flex-shrink: 0; }
.hero-tour .api-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--border-mid); border-radius: 7px; background: var(--surface-card); color: var(--blue-ink); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease, scale .1s ease; }
.hero-tour .api-cta:hover, .hero-tour .api-cta.is-target { background: var(--blue-light); border-color: var(--blue); }
.hero-tour .api.is-staged .api-caret { display: inline-block; }
.hero-tour .api.is-staged .api-status:not(.is-on) { opacity: 0; translate: 6px 0; }
.hero-tour .api.is-staged .api-ln:not(.is-on) { opacity: 0; translate: 0 4px; }
.hero-tour .api.is-staged .api-card:not(.is-on) { opacity: 0; translate: 14px 0; }

/* API chapter, screen two: the prompt that sets the alert up, the steps it
   becomes, and the alert arriving in Slack. */
.hero-tour .wf { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr); gap: 16px; }
.hero-tour .wf-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; min-height: 0; }
.hero-tour .wf-prompt { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-card); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.hero-tour .wf.is-staged .wf-prompt:not(.is-sent) { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-light), var(--shadow-sm); }
.hero-tour .wf-prompt p { margin: 0; min-height: 6em; color: var(--white); font-size: 13.5px; line-height: 1.5; }
.hero-tour .wf-caret { display: none; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--blue); animation: srchBlink 1s step-end infinite; }
.hero-tour .wf.is-staged .wf-prompt:not(.is-sent) .wf-caret { display: inline-block; }
.hero-tour .wf-prompt-f { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hero-tour .wf-conn { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; padding: 3px 8px; border: 1px solid var(--border-light); border-radius: 999px; color: var(--text-light); font-size: 10px; font-weight: 600; white-space: nowrap; }
.hero-tour .wf-conn i { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--status-positive); }
.hero-tour .wf-send { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--text-on-inverse); transition: scale .12s ease, background .2s ease; }
.hero-tour .wf-send svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-tour .wf-send.is-press { scale: .86; }
.hero-tour .wf-steps { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-tour .wf-st { flex: 1; min-height: 0; max-height: 78px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface-card); transition: opacity .25s ease, border-color .25s ease; }
.hero-tour .wf-st-ico { width: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-start; color: var(--text-light); }
.hero-tour .wf-st-ico img { display: block; height: 26px; width: auto; }
.hero-tour .wf-st-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-tour .wf-mark { display: block; width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; background: url(/dealroom-logo-darkblue.svg) left center / auto 100% no-repeat; }
.hero-tour .wf-st-b { flex: 1; min-width: 0; }
.hero-tour .wf-st-b b { display: block; color: var(--white); font-size: 13px; font-weight: 700; line-height: 1.3; }
.hero-tour .wf-st-b span, .hero-tour .wf-st-b code { display: block; margin-top: 2px; color: var(--text-light); font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tour .wf-st-b code { font-family: var(--font-mono); font-size: 10.5px; }
.hero-tour .wf-tick { position: relative; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--status-positive); transition: scale .3s var(--tour-spring), background .2s ease; }
.hero-tour .wf-tick::after { content: ''; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid var(--text-on-inverse); border-width: 0 2px 2px 0; rotate: 45deg; }
.hero-tour .wf.is-staged .wf-st:not(.is-done) { opacity: .5; }
.hero-tour .wf.is-staged .wf-st:not(.is-done) .wf-tick { scale: 0; }
.hero-tour .wf.is-staged .wf-st.is-run { opacity: 1; border-color: var(--blue); }
.hero-tour .wf.is-staged .wf-st.is-run .wf-tick { scale: 1; background: none; border: 2px solid var(--blue-light); border-top-color: var(--blue); animation: tourSpin .7s linear infinite; }
.hero-tour .wf.is-staged .wf-st.is-run .wf-tick::after { display: none; }
@keyframes tourSpin { to { rotate: 360deg; } }
.hero-tour .wf-slack { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-card); box-shadow: var(--shadow-sm); }
.hero-tour .wf-slack-bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border-light); flex-shrink: 0; }
.hero-tour .wf-slack-bar img { display: block; height: 22px; width: auto; }
.hero-tour .wf-slack-bar b { color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap; }
.hero-tour .wf-slack-bar span { min-width: 0; color: var(--text-faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tour .wf-msg { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 12px 14px; transition: opacity .25s ease; }
.hero-tour .wf-msg > .wf-mark { width: 30px; height: 30px; border-radius: 7px; }
.hero-tour .wf-msg-b { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.hero-tour .wf-msg-h { display: flex; align-items: baseline; gap: 7px; }
.hero-tour .wf-msg-h b { color: var(--white); font-size: 13px; font-weight: 700; }
.hero-tour .wf-app { padding: 1px 4px; border-radius: 3px; background: var(--surface-data); color: var(--text-light); font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.hero-tour .wf-msg-h time { color: var(--text-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.hero-tour .wf-msg-t { margin: 2px 0 8px; color: var(--white); font-size: 12px; line-height: 1.4; }
.hero-tour .wf-alerts { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; }
.hero-tour .wf-alert { flex: 1; min-height: 0; max-height: 112px; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border: 1px solid var(--border-light); border-left: 3px solid var(--blue); border-radius: 8px; background: var(--surface-card); transition: opacity .3s ease, translate .42s var(--tour-ease); }
.hero-tour .wf-alert .api-ava { width: 34px; height: 34px; }
.hero-tour .wf-alert-b { flex: 1; min-width: 0; }
.hero-tour .wf-alert-n { color: var(--white); font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tour .wf-alert-n span { color: var(--text-light); font-weight: 500; }
.hero-tour .wf-alert-m { margin-top: 1px; color: var(--text-light); font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tour .wf-alert-m b { color: var(--white); font-weight: 600; }
.hero-tour .wf-alert-x { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.hero-tour .wf-chip { padding: 2px 7px; border: 1px solid var(--border-light); border-radius: 5px; color: var(--blue-ink); font-size: 10px; font-weight: 600; white-space: nowrap; }
.hero-tour .wf-crm { flex-shrink: 0; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 2px; color: var(--text-light); font-size: 12px; transition: opacity .3s ease, translate .42s var(--tour-ease); }
.hero-tour .wf-crm img { display: block; height: 22px; width: auto; flex-shrink: 0; }
.hero-tour .wf-crm span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tour .wf-crm span::before { content: ''; display: inline-block; width: 4px; height: 8px; margin: 0 9px 1px 2px; border: solid var(--status-positive); border-width: 0 2px 2px 0; rotate: 45deg; }
.hero-tour .wf-crm b { color: var(--white); font-weight: 600; }
.hero-tour .wf.is-staged .wf-msg:not(.is-on) { opacity: 0; }
.hero-tour .wf.is-staged :is(.wf-alert, .wf-crm):not(.is-on) { opacity: 0; translate: 0 12px; }

/* The premium page embeds this same tour in a narrower column. */
@container hero-tour (max-width: 850px) {
    .hero-tour .dashboard-chrome { padding: 14px 18px; gap: 14px; }
    .hero-tour .tour-product { font-size: 12px; padding-left: 14px; }
    .hero-tour .tour-preview-label { font-size: 10px; }
    .hero-tour .dashboard-sidebar { width: 126px; padding: 18px 8px; }
    .hero-tour .sidebar-icon { padding: 0 8px; gap: 8px; font-size: 11px; }
    .hero-tour .dashboard-main { padding: 20px 18px; }
    .hero-tour .gmap-kpis { gap: 14px; }
    .hero-tour .gmap-kpi strong { font-size: 16px; }
    .hero-tour .gmap-title { font-size: 19px; }
    .hero-tour .tour-footer { flex-wrap: wrap; gap: 16px; padding: 18px; }
    .hero-tour .tour-takeaway { flex-basis: 100%; }
    .hero-tour .tour-actions { width: 100%; justify-content: space-between; }
    .hero-tour .tour-title { font-size: 20px; }
    .hero-tour .gmap-hot[aria-label="Munich"]:not(.is-hero) .gmap-lbl,
    .hero-tour .gmap-hot[aria-label="Seattle"]:not(.is-hero) .gmap-lbl { display: none; }
    .hero-tour .tour-rail { padding: 0 18px; }
    .hero-tour .api-title { font-size: 19px; }
    .hero-tour .api-code pre { padding: 10px 12px; font-size: 10px; }
    .hero-tour .api-card { padding: 8px 10px; gap: 10px; }
    .hero-tour .api-card-n { font-size: 13px; }
    .hero-tour .api-tag { display: none; }
    .hero-tour .api-ava { width: 34px; height: 34px; }
    .hero-tour .wf { gap: 12px; }
    .hero-tour .wf-prompt p { font-size: 12px; }
    .hero-tour .wf-st-ico { width: 52px; }
}
@media (max-width: 768px) {
    .hero-tour .dashboard-body { height: 480px; }
    .hero-tour .dashboard-sidebar { width: 100%; padding: 8px; gap: 2px; border-right: 0; border-bottom: 1px solid var(--border-light); }
    .hero-tour .sidebar-icon { height: 36px; padding: 0; }
    .hero-tour .dashboard-main { padding: 18px 14px; mask-image: none; -webkit-mask-image: none; }
    .hero-tour .dash-view[data-view-body="map"] .gmap { justify-content: center; gap: 18px; }
    .hero-tour .dash-view[data-view-body="map"] .gmap-head { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .hero-tour .dash-view[data-view-body="map"] .gmap-kpis { grid-column: 1; grid-row: auto; margin: 6px 0 0; gap: 10px; width: 100%; }
    .hero-tour .gmap-kpi { text-align: left; }
    .hero-tour .dash-view[data-view-body="map"] .gmap-canvas { width: 100%; margin: 0; max-height: none; box-shadow: none; }
    .hero-tour .gmap-lbl { font-size: 8px; padding: 1px 3px; }
    .hero-tour .gmap-hot.is-hero .gmap-lbl { font-size: 10px; }
    .hero-tour .gmap-hot[aria-label="Boston"]:not(.is-hero) .gmap-lbl,
    .hero-tour .gmap-hot[aria-label="Stockholm"]:not(.is-hero) .gmap-lbl,
    .hero-tour .gmap-hot[aria-label="Beijing"]:not(.is-hero) .gmap-lbl { display: none; }
    .hero-tour .tour-product { border: 0; padding: 0; margin-left: auto; font-size: 11px; max-width: 150px; text-align: right; }
    .hero-tour .dashboard-chrome { display: grid; grid-template-columns: 106px 1fr; gap: 2px 12px; }
    .hero-tour .tour-logo { grid-row: 1 / 3; }
    .hero-tour .tour-product { grid-column: 2; }
    .hero-tour .tour-preview-label { grid-column: 2; font-size: 9px; text-align: right; }
    .hero-tour .tour-footer { gap: 14px; }
    /* A phone has no pointer: the tour taps with a touch point instead of an arrow,
       and the point only shows while it is tapping. */
    .hero-tour .dash-cursor { opacity: 0; }
    .hero-tour .dash-cursor.is-touch { opacity: 1; }
    .hero-tour.flow-paused .dash-cursor.is-touch { opacity: 0; }
    .hero-tour .dash-cursor-arrow { display: none; }
    .hero-tour .dash-cursor-ring { left: -10px; top: -12px; width: 30px; height: 30px; border: 1.5px solid color-mix(in srgb, var(--blue) 55%, transparent); background: color-mix(in srgb, var(--blue) 24%, transparent); filter: none; } /* theme-guardrail-allow: translucent accents derived from semantic theme tokens */
    .hero-tour .dash-cursor.press .dash-cursor-ring { transform: scale(.78); }
    .hero-tour .dash-cursor-ripple { left: 0; top: -2px; }
    .hero-tour .sidebar-sep { display: none; }
    .hero-tour .sidebar-new { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; padding: 0; border-radius: 50%; background: var(--blue); font-size: 0; }
    .hero-tour .tour-rail { padding: 0 18px; gap: 3px; }
    .hero-tour .tour-seg span { display: none; }
    .hero-tour .tour-title { font-size: 20px; }
    /* The two API screens stack; the tour scrolls down to the second half, and a
       visitor who has taken over can scroll them. */
    .hero-tour.flow-paused .dash-view.active:has(.api, .wf) { overflow-y: auto; }
    .hero-tour .api { height: auto; gap: 10px; }
    .hero-tour .api-modes, .hero-tour .api-foot-l, .hero-tour .api-tools { display: none; }
    .hero-tour .api-title { font-size: 19px; }
    .hero-tour .api-body { display: flex; flex-direction: column; gap: 10px; }
    .hero-tour .api-code pre { font-size: 9.5px; }
    .hero-tour .api-res { max-height: 14.6em; }
    .hero-tour .api-card { flex: none; padding: 9px 10px; }
    .hero-tour .api-foot { justify-content: flex-end; }
    .hero-tour .wf { height: auto; display: flex; flex-direction: column; gap: 14px; }
    .hero-tour .wf-prompt p { min-height: 7.5em; }
    .hero-tour .wf-steps { flex: none; }
    .hero-tour .wf-st { flex: none; height: 46px; }
    .hero-tour .wf-slack { flex: none; }
    .hero-tour .wf-slack-bar span { display: none; }
    .hero-tour .wf-alert { flex: none; }
    .hero-tour .wf-alert-x { display: none; }
}
@container hero-tour (max-width: 480px) {
    .hero-tour .tour-count { display: none; }
    .hero-tour .tour-actions { gap: 10px; flex-wrap: wrap; }
    .hero-tour .dash-fwd { gap: 6px; }
    .hero-tour .tour-access { padding: 0 14px; flex-grow: 1; }
    .hero-tour .dashboard-chrome { grid-template-columns: 90px minmax(0, 1fr); padding: 12px 14px; gap: 4px 10px; }
    .hero-tour .tour-logo { width: 90px; }
    .hero-tour .tour-preview-label { white-space: normal; }
    .hero-tour .tour-rail { padding: 0 14px; }
    .hero-tour .tour-title { font-size: 18px; }
    .hero-tour .api-sig span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-tour *, .hero-tour *::before, .hero-tour *::after { animation: none !important; transition: none !important; }
    .hero-tour .dash-cursor { display: none; }
}
