/*
 * Product tours (tours.js): one job in FloodCaliber, start to finish, on the product's own screens with fictional
 * data. Without the script each tour reads as a list of screens with one sentence each; with it, one screen at a
 * time, as large as the window allows, the part the sentence is about lit up with a "Click here" tag (clicking it
 * moves the tour on), and under the screen a slim bar with the sentence, Back and Next. Each step has the laptop
 * screen and the Command Center's own phone screen: a phone sees the phone screen, a tablet or a laptop the laptop
 * screen. Nothing is drawn around a screen: no phone, no laptop, no window bar.
 * Used by tours.html, the four tour-*.html pages, and the tour previews on product.html, force-placement.html and
 * portfolio-map.html (.tour-embed).
 */

/* ---------- Without the script: the steps in order ---------- */
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: tour; }
.tour-steps > li { counter-increment: tour; }
.tour-steps figure { margin: 0; }
.tour-steps picture { display: block; }
.tour-steps img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(16, 40, 63, .12); }
/* On a phone each step is the phone screen (its <picture> source), no wider than a phone. */
@media (max-width: 699px) { .tour-steps img { max-width: 430px; margin-inline: auto; } }
.tour-steps figcaption { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--navy); }
.tour-steps figcaption::before { content: counter(tour) ". "; font-weight: 700; color: var(--sky); }
.tour-payoff-body h3 { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: var(--navy); }
.tour-payoff-body p { margin: 0 0 18px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.tour-payoff-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- The player ---------- */
/* It sizes itself to the window's height, so the whole screen and the bar under it fit together, but never below
   560px wide. Its layout follows its own width (a container), so a short window gets the same layout as a phone. */
/* The player's words are also placed on other pages, inside sections that style every paragraph and picture; the
   longer selectors below keep its own type, colours and edges whatever is around it. */
.tour-player { container: tour / inline-size; max-width: max(min(100%, 560px), min(100%, calc((100vh - 196px) * 1.588))); margin-inline: auto; outline: none; text-align: left; }
.tour-player:focus-visible { outline: 3px solid var(--sky-light); outline-offset: 6px; border-radius: 26px; }
/* The screen stands out: a navy card with a light edge and a deep shadow, the screen edge to edge at its top. */
.tour-card { border-radius: 22px; overflow: clip; background: var(--navy); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .04); }

/* The screen, whole, at the card's full width. */
.tour-view { position: relative; overflow: hidden; background: #EEF1F4; }
.tour-view[hidden] { display: none !important; }
.tour-shot { position: relative; aspect-ratio: 1366 / 860; }
/* While the next picture arrives the last one stays, faded (only if it takes a moment), with no ring on it. */
.tour-shot.is-loading .tour-img { opacity: .35; transition: opacity .15s .12s; }
.tour-shot.is-loading .tour-ring { visibility: hidden; }
.tour-player .tour-shot .tour-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; border: 0; border-radius: 0; box-shadow: none; }
.tour-player .tour-img { -webkit-user-drag: none; }

/* The lit part: a bold water-blue ring just outside the part of the screen the sentence is about, with a soft glow
   and a "Click here" tag, never on top of the part itself and with nothing else on the screen dimmed. Clicking it
   moves the tour on, as clicking that button would in the product (owner's note, November 27, 2026: "encourage
   people to click the screens and buttons inside rather than clicking next"). It stays still on its own; it swells
   once when a step appears and when the visitor clicks elsewhere on the screen, so motion only answers a click. */
.tour-ring { position: absolute; z-index: 2; min-width: 24px; min-height: 24px; padding: 0; border: 3px solid var(--sky-mid); border-radius: 10px; background: transparent; cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 22px 4px rgba(74, 144, 194, .45); }
.tour-ring:hover { border-color: var(--sky); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 28px 8px rgba(74, 144, 194, .6); }
.tour-ring:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
/* A small lit part still gets a 44px area to press, centred on it; the line itself stays where it is. */
.tour-ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.tour-ring[hidden] { display: none; }
/* The tag: navy, above the lit part with its point down to it (under it, pointing up, when the part is at the top of
   the window; just inside its top edge when there is no room either side). Centred on the part, or lined up with its
   left or right edge near a side of the screen. It is inside the ring's button, so pressing it is pressing the ring. */
.tour-tap { position: absolute; z-index: 1; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--navy); color: var(--white); font: 600 15px/1 'Outfit', Arial, sans-serif; white-space: nowrap; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .9); }
.tour-tap svg { width: 16px; height: 16px; fill: var(--white); }
.tour-tap::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--navy); border-bottom: 0; }
.tour-ring.tap-below .tour-tap { bottom: auto; top: calc(100% + 12px); }
.tour-ring.tap-below .tour-tap::after { top: auto; bottom: 100%; border-top: 0; border-bottom: 7px solid var(--navy); }
.tour-ring.tap-inside .tour-tap { bottom: auto; top: 10px; }
.tour-ring.tap-inside .tour-tap::after { display: none; }
.tour-ring.tap-start .tour-tap { left: -3px; transform: none; }
.tour-ring.tap-start .tour-tap::after { left: 24px; }
.tour-ring.tap-end .tour-tap { left: auto; right: -3px; transform: none; }
.tour-ring.tap-end .tour-tap::after { left: auto; right: 24px; margin-left: 0; margin-right: -7px; }
@media (prefers-reduced-motion: no-preference) {
  .tour-ring.is-arriving { animation: tour-arrive .7s ease-out; }
  .tour-ring.is-nudged { animation: tour-nudge .7s ease-out; }
  .tour-ring.is-nudged .tour-tap { animation: tour-tap-hop .7s ease-out; }
}
@keyframes tour-arrive { 0% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 0 0 rgba(74, 144, 194, .7); } 60% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 0 14px rgba(74, 144, 194, 0); } }
@keyframes tour-nudge { 0%, 100% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 22px 4px rgba(74, 144, 194, .45); } 35% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 0 12px rgba(74, 144, 194, .35), 0 0 40px 12px rgba(74, 144, 194, .7); } }
@keyframes tour-tap-hop { 0%, 100% { translate: 0 0; } 25% { translate: 0 -7px; } 50% { translate: 0 0; } 70% { translate: 0 -3px; } }

/* The sentence, the step number, Back and Next: one navy bar under the screen, so the words never cover what they
   talk about. While the card is only partly on screen the bar stays at the foot of the window, so Next is always
   in reach; the first press brings the whole card into view. */
.tour-bar { position: sticky; bottom: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: 14px 16px 14px 24px; background: var(--navy); color: var(--white); }
.tour-progress { position: absolute; inset: 0 0 auto; height: 4px; background: rgba(255, 255, 255, .16); }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--sky-mid); transition: width .3s ease; }
/* Room for the tour's longest sentence (tours.js measures it), so Back and Next don't move from step to step. */
.tour-text { min-height: 52px; display: grid; align-content: center; }
.tour-player .tour-bar .tour-count { margin: 0 0 4px; max-width: none; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .02em; color: var(--sky-light); }
.tour-player .tour-bar .tour-say { margin: 0; max-width: none; font-size: 18px; line-height: 26px; font-weight: 400; color: var(--white); text-wrap: pretty; }
.tour-controls { display: flex; gap: 10px; }
.tour-controls .btn { min-height: 48px; padding: 0 20px; font-size: 16px; font-weight: 600; justify-content: center; }
.tour-controls .btn[hidden] { display: none; }
.tour-prev { border-color: rgba(255, 255, 255, .5); background: transparent; color: var(--white); }
.tour-prev:hover:not(:disabled) { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.tour-prev:disabled { opacity: .45; cursor: default; }
/* The lit part on the screen is the way on, so Next is an outlined button beside Back; Start again, at the end, is
   white. Copper is kept for Book a demo. */
.tour-next { min-width: 112px; border-color: rgba(255, 255, 255, .7); background: transparent; color: var(--white); }
.tour-next:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.tour-again { min-width: 136px; background: var(--white); color: var(--navy); }
.tour-again:hover { background: var(--sky-wash); }
.tour-controls .btn:focus-visible { outline: 3px solid var(--sky-light); outline-offset: 3px; }
.tour-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tour-player > .tour-foot.tour-foot { margin: 14px 4px 0; max-width: none; font-size: 15px; line-height: 1.5; color: var(--ink-3); text-align: center; }

/* The ending takes the screen's place and keeps its size on a wide player. */
.tour-payoff-card { aspect-ratio: 1366 / 860; display: grid; align-content: center; justify-items: center; padding: clamp(24px, 6%, 64px); background: linear-gradient(160deg, var(--warm), var(--white)); text-align: center; }
.tour-payoff-card[hidden] { display: none; }
.tour-player .tour-card .tour-payoff-card h3 { margin: 0 0 14px; max-width: 22ch; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: var(--navy); }
.tour-player .tour-card .tour-payoff-card p { margin: 0 0 26px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-2); }
.tour-payoff-card .tour-payoff-actions { justify-content: center; }
.tour-payoff-card .btn { min-height: 52px; }


/* A narrow player (a phone): the sentence sits over Back and Next, and Next takes the room that is left. */
@container tour (max-width: 699px) {
  .tour-bar { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
  .tour-text { min-height: 100px; align-content: start; }
  .tour-player .tour-bar .tour-count { margin-bottom: 2px; }
  .tour-player .tour-bar .tour-say { font-size: 18px; line-height: 26px; }
  .tour-controls .btn { min-height: 48px; padding: 0 20px; }
  .tour-next, .tour-again { flex: 1; min-width: 0; }
  /* The site's Ask Cali button floats in the bottom-right corner of a phone's screen, which is where this bar sits
     while it is pinned to the foot of the screen: Back and Next keep to the left of it, so it never covers Next. */
  body:has(.cw-launch) .tour-player .tour-controls { padding-right: 148px; }
  .tour-payoff-card { aspect-ratio: auto; min-height: 340px; padding: 28px 18px; }
  .tour-payoff-card .tour-payoff-actions { flex-direction: column; align-self: stretch; width: 100%; }
  .tour-payoff-card .btn { justify-content: center; }
  /* Two lines kept for the note under the player, so the ending (one line) doesn't move what follows. */
  .tour-player > .tour-foot.tour-foot { min-height: 3em; text-align: left; font-size: 14px; }
  .is-payoff .tour-text { min-height: 0; }
}
/* A phone (.is-phone): the Command Center's own phone screen, as wide as the player, in a window as tall as the
   screen allows once the menu bar and the player's navy bar have their room (--tour-chrome, measured by tours.js
   when the width changes), and never taller than the phone screen itself. The window keeps its height from step to
   step, the ending included, so nothing moves; tours.js slides the picture inside it so the ringed part sits in its
   middle. Up and down on the picture scroll the page; a swipe sideways moves the tour on. */
.tour-player.is-phone .tour-view,
.tour-player.is-phone .tour-payoff-card { height: min(calc(100cqi * 1688 / 780), max(220px, calc(100svh - var(--tour-chrome, 300px)))); }
.tour-player.is-phone .tour-view { touch-action: pan-y pinch-zoom; background: #F5F3EF; }
.tour-player.is-phone .tour-shot { aspect-ratio: 780 / 1688; }
.tour-player.is-phone .tour-payoff-card { aspect-ratio: auto; min-height: 0; overflow-y: auto; }

@container tour (max-width: 359px) {
  .tour-controls .btn { padding: 0 14px; }
  body:has(.cw-launch) .tour-player .tour-controls { padding-right: 140px; }
  .tour-player .tour-bar .tour-say { font-size: 17px; line-height: 25px; }
  .tour-text { min-height: 126px; }
}

/* ---------- A tour placed on another page: a preview that starts it ---------- */
.tour-embed { position: relative; }
.tour-start { position: relative; display: block; max-width: min(100%, calc((100vh - 200px) * 1.588)); margin-inline: auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -20px rgba(16, 40, 63, .28); text-decoration: none; }
/* The laptop screen, whole, with nothing drawn around it. Without the script an older preview's phone screenshot
   may be chosen on a phone; it is cut to the same shape from its top. */
.tour-start img { display: block; width: 100%; height: auto; aspect-ratio: 1366 / 860; object-fit: cover; object-position: top left; }
.tour-start::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 40, 63, 0) 45%, rgba(16, 40, 63, .6)); }
/* Copper is kept for Book a demo, so the start button is navy whatever class its page gives it. */
.tour-start .btn { position: absolute; z-index: 1; left: 50%; bottom: 24px; transform: translateX(-50%); min-height: 54px; padding: 0 28px; background: var(--navy); border-color: rgba(255, 255, 255, .5); color: var(--white); font-size: 18px; font-weight: 600; white-space: nowrap; }
.tour-start:hover .btn { background: var(--navy-soft); }
.tour-start:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.tour-start[aria-busy="true"] .btn { opacity: .7; }
@media (max-width: 600px) { .tour-start .btn { bottom: 14px; min-height: 50px; padding: 0 22px; font-size: 17px; } }

/* ---------- The tour pages and the index (tours.html, tour-*.html) ---------- */
/* The opening (.ph) kept compact, so the tour starts near the top. */
@media (max-width: 899px) {
  .ph-compact .ph-bg { height: 132px; }
  .ph-compact .ph-grid { margin-top: -30px; padding-bottom: 24px; }
  .ph-compact .crumbs { margin-bottom: 6px; }
  .ph-compact h1 { margin-bottom: 8px; }
  .ph-compact .ph-lead { font-size: 17px; line-height: 1.5; }
  .ph-compact .ph-facts { margin-top: 12px; gap: 6px 16px; font-size: 15px; }
}
@media (min-width: 900px) {
  .ph-compact .ph-grid.solo { min-height: 0; padding: 26px 0 40px; }
  .ph-compact h1 { font-size: clamp(38px, 3.8vw, 54px); }
  .ph-compact .ph-facts { font-size: 15px; }
}

/* A tour's own page: the player is the point, so its section is a navy stage, wider than the page's text, that
   starts close under the short answer; the screen stands out on it (owner's note, November 27, 2026). */
main > section.tour-page { padding: 36px 0 60px; background: radial-gradient(1100px 520px at 50% 0%, rgba(46, 110, 158, .45), rgba(46, 110, 158, 0) 70%), var(--navy); color: var(--white); }
main > section.tour-page > .wrap { width: min(1480px, 100% - 32px); }
.tour-page .tour-player > .tour-foot.tour-foot { color: rgba(255, 255, 255, .84); }
.tour-page .tour-more .text-link { color: var(--white); border-bottom-color: var(--sky-light); }
.tour-page .tour-more .text-link:hover { color: var(--sky-light); }
.tour-note { max-width: 46em; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px; background: var(--sky-wash); font-size: 16px; line-height: 1.5; color: var(--ink); }
/* ---------- The tour in a page: "Try it yourself" (.try-sec) ----------
   The first screen large, with one button to start it; started, it plays in place (full screen on a phone): one
   screen at a time, a ring on the part the sentence is about, Back and Next. A light first screen (.is-light) takes a
   navy button and less shade. Used by the Command Center, Portfolio map, Force placement and Integrations pages,
   near the foot, after what the product does and why (see the note further down). */
.try-sec .tour-start { max-width: 100%; border-color: rgba(255, 255, 255, .22); box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .65); }
.try-sec .tour-start::after { background: rgba(10, 28, 46, .4); transition: background .2s; }
.try-sec .tour-start:hover::after { background: rgba(10, 28, 46, .28); }
.try-sec .tour-start .btn { top: 42%; bottom: auto; transform: translate(-50%, -50%); min-height: 60px; padding: 0 32px; background: var(--white); border-color: var(--white); color: var(--navy); font-size: 19px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6); }
.try-sec .tour-start:hover .btn { background: var(--sky-wash); }
.try-sec.is-light .tour-start::after { background: rgba(10, 28, 46, .16); }
.try-sec.is-light .tour-start:hover::after { background: rgba(10, 28, 46, .08); }
.try-sec.is-light .tour-start .btn { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 14px 34px -10px rgba(0, 0, 0, .5); }
.try-sec.is-light .tour-start:hover .btn { background: var(--navy-soft); }
.try-sec .tour-start:focus-visible { outline-color: var(--focus); }
.try-sec.is-navy .tour-player > .tour-foot.tour-foot { color: rgba(255, 255, 255, .84); }
.try-sec.is-navy .tour-player > .tour-foot.tour-foot a { color: var(--white); }
/* A line that has to be read with the tour (a caveat), above the screen, on the navy whether or not it plays. */
.try-sec .ph-tour-first { margin: 0 0 14px; max-width: 46em; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .84); }
@media (max-width: 600px) {
  .try-sec .tour-start .btn { bottom: auto; min-height: 50px; padding: 0 22px; font-size: 17px; }
}

.tour-more { margin: 22px 0 0; text-align: center; font-size: 17px; }
/* The link gets a 44px-tall area to press without moving its underline. */
.tour-more .text-link { position: relative; }
.tour-more .text-link::after { content: ""; position: absolute; inset: -10px -6px; }
@media (max-width: 760px) {
  main > section.tour-page { padding: 24px 0 44px; }
  .tour-more { text-align: left; }
}

/* The index: the four tours, each a card with its first screen, what it shows and how long it takes. */
main > section.tour-hub { padding-top: 56px; }
.tour-hub .v4-head { margin-bottom: 28px; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tour-item { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: 0 24px 60px -30px rgba(16, 40, 63, .3); }
.tour-item:hover { border-color: var(--sky-mid); }
.tour-item img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.tour-item-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.tour-item h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -.015em; color: var(--navy); }
.tour-item p { margin: 8px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.tour-item .tour-meta { margin: 14px 0 18px; font-size: 15px; font-weight: 600; color: var(--sky); }
/* The whole card is the link; the button says what pressing it does. */
.tour-item .btn { align-self: flex-start; margin-top: auto; min-height: 50px; font-size: 17px; font-weight: 600; }
.tour-item .btn::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.tour-item:has(.btn:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.tour-item .btn:focus-visible { outline: none; }
@media (max-width: 760px) {
  main > section.tour-hub { padding-top: 32px; }
  .tour-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-item-body { padding: 18px 18px 20px; }
  .tour-item .btn { align-self: stretch; justify-content: center; }
}

/* The index: one screen with its ring, to show what a tour looks like. */
.tour-sample { position: relative; }
.tour-sample-ring { position: absolute; border: 2px solid var(--sky-mid); border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .9); pointer-events: none; }

/* Keyboard focus on the tours' own controls is navy (water blue on the navy bar); copper is kept for Book a demo. */
.tour-more .text-link:focus-visible, .tour-payoff-card .btn-ghost:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.tour-page .tour-more .text-link:focus-visible { outline-color: var(--sky-light); }

/* ---------- Windows high contrast (Edge), reduced motion and print ---------- */
@media (forced-colors: active) {
  .tour-card, .tour-item, .tour-start, .tour-note, .tour-tap { border: 1px solid CanvasText; }
  .tour-bar { border-top: 1px solid CanvasText; }
  /* The ring sits on a picture, so it keeps its own two colours: they show on a light screen and on a dark one. */
  .tour-ring, .tour-sample-ring { forced-color-adjust: none; }
  .tour-progress i { background: Highlight; }
}
/* A short window (a phone on its side): the bar stays in its place under the screen and the page scrolls. A small
   phone held upright keeps the bar at the foot of the screen, with Next in reach. */
@media (max-height: 560px) and (orientation: landscape) { .tour-bar { position: static; } }
@media (prefers-reduced-motion: reduce) {
  .tour-progress i, .tour-shot.is-loading .tour-img { transition: none; }
}
@media print {
  .tour-controls, .tour-ring, .tour-foot { display: none; }
  .tour-bar { position: static; }
}

/* ---------- A phone: the tour full screen (tours.js, owner's note of November 27, 2026) ----------
   A sheet over the whole screen: the tour's name and Close at the top; the Command Center's phone screen in the
   middle, filling the room, with the part the sentence is about lit and in the middle (the screen's edges fade, so
   nothing reads as cut off); and under it a white panel with the step, the sentence, and big Back and Next buttons.
   No tag sits on the screen: the panel says to tap the lit part. */
.tour-full { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--navy-deep); color: var(--white); }
.tour-full[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tour-full::backdrop { background: var(--navy-deep); }
.tour-full-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; width: 100%; min-width: 0; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px; }
.tour-full-top p { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: rgba(255, 255, 255, .9); }
.tour-full-close { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; background: transparent; font: 600 15px/1 'Outfit', Arial, sans-serif; color: var(--white); cursor: pointer; }
.tour-full-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tour-full-close:focus-visible { outline: 3px solid var(--sky-light); outline-offset: 2px; }
.tour-player.is-full { max-width: none; height: 100%; margin: 0; }
.tour-player.is-full:focus-visible { outline: none; }
.tour-player.is-full .tour-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; border: 0; border-radius: 0; background: var(--navy-deep); box-shadow: none; }
.tour-player.is-full .tour-view, .tour-player.is-full.is-phone .tour-view, .tour-player.is-full .tour-payoff-card, .tour-player.is-full.is-phone .tour-payoff-card { height: auto; min-height: 0; }
.tour-player.is-full .tour-view { -webkit-mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent); background: #F5F3EF; }
.tour-player.is-full .tour-tap { display: none; }
.tour-player.is-full .tour-ring { border-width: 3px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 9999px rgba(10, 28, 46, 0), 0 0 26px 6px rgba(74, 144, 194, .55); }
.tour-player.is-full .tour-payoff-card { overflow-y: auto; }
.tour-player.is-full .tour-bar { position: static; gap: 12px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--white); color: var(--navy); box-shadow: 0 -12px 30px -16px rgba(0, 0, 0, .5); }
.tour-player.is-full .tour-progress { left: 22px; right: 22px; top: 8px; height: 4px; border-radius: 2px; background: #E3E8EE; }
.tour-player.is-full .tour-progress i { border-radius: 2px; background: var(--sky); }
.tour-player.is-full .tour-bar .tour-count { color: var(--sky); }
.tour-player.is-full .tour-bar .tour-count::after { content: " \00B7  Tap the lit part, or swipe"; font-weight: 500; color: var(--ink-3); }
.tour-player.is-full.is-payoff .tour-bar .tour-count::after { content: none; }
.tour-player.is-full .tour-bar .tour-say { font-size: 18px; line-height: 26px; color: var(--navy); }
body:has(.cw-launch) .tour-player.is-full .tour-controls { padding-right: 0; }
.tour-player.is-full .tour-controls .btn { min-height: 54px; font-size: 17px; }
.tour-player.is-full .tour-prev { border-color: #C9D3DD; color: var(--navy); }
.tour-player.is-full .tour-prev:disabled { opacity: .4; }
.tour-player.is-full .tour-next, .tour-player.is-full .tour-again { flex: 1; border-color: var(--navy); background: var(--navy); color: var(--white); }
.tour-player.is-full .tour-controls .btn:focus-visible { outline-color: var(--navy); }
.tour-player.is-full + .tour-live, .tour-player.is-full > .tour-foot.tour-foot { display: none; }

/* On a phone, a tour's own page: its first screen and a big button that opens the tour full screen. */
.tour-phone-start { display: grid; gap: 0; width: 100%; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; overflow: hidden; background: var(--white); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.tour-phone-pic { display: block; height: 300px; overflow: hidden; background: #F5F3EF; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.tour-phone-pic img { display: block; width: 100%; height: auto; }
.tour-phone-go { display: grid; gap: 10px; padding: 4px 16px 18px; }
.tour-phone-go .btn { justify-content: center; min-height: 56px; font-size: 18px; }
.tour-phone-go small { font-size: 15px; line-height: 1.4; color: var(--ink-2); text-align: center; }
.tour-phone-start:focus-visible { outline: 3px solid var(--sky-light); outline-offset: 4px; }

/* ---------- The tour lower down a page: "Try it yourself" (.try-sec) ----------
   The owner, November 27, 2026, on the product pages that opened on the tour: "we first need to have the info about
   our solutions and the benefit and value and explain how we solve it and then allow the user to play around with a
   sample". So a page says what the product does, why it matters and how, and the tour comes last, on navy, before
   Keep exploring: the first screen large with one button to start it, playing in place as before (full screen on a
   phone), with the look above. A tour whose first screen is the navy Command Center sits on the warm section, so
   the screen stands out; a light first screen on navy. */
.try-sec .v4-head { margin-bottom: 28px; }
.try-sec .try-sec .ph-tour-first { margin: 0 0 14px; }
.try-more { margin: 22px 0 0; text-align: center; }
.try-sec .tour-embed.is-playing ~ .try-more { margin-top: 30px; }

/* ---------- The player, redone (owner, November 27, 2026: "this entire demo part is so ugly and not user friendly -
   we need to redo all of the samples!") ----------
   On a laptop or a tablet the tour is one white card: the step's sentence large on the left, with the step count,
   a thin progress line and big Back and Next buttons; on the right the Command Center's screen, zoomed to the part
   the sentence is about (tours.js zoomTo), so it can be read. No "Click here" tag and no dark bar; the lit part is
   a thin line round its part and still moves the tour on when pressed. Phones keep the full-screen tour. */
.tour-player:not(.is-phone) .tour-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(16, 40, 63, .55); }
.tour-player:not(.is-phone) .tour-view { order: 0; aspect-ratio: 16 / 10; background: #E9EEF4; }
.tour-player:not(.is-phone) .tour-payoff-card { order: 0; }
.tour-player:not(.is-phone) .tour-shot { transform-origin: 0 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.tour-player:not(.is-phone) .tour-img { box-shadow: none; }
.tour-player:not(.is-phone) .tour-tap { display: none; }
.tour-player:not(.is-phone) .tour-ring { border-width: calc(2.5px / var(--z, 1)); border-radius: calc(8px / var(--z, 1)); box-shadow: 0 0 0 calc(4px / var(--z, 1)) rgba(74, 144, 194, .22); }
.tour-player:not(.is-phone) .tour-bar { order: 1; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 24px; padding: 22px 24px 20px; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.tour-player:not(.is-phone) .tour-progress { inset: 0 0 auto; height: 4px; background: var(--sky-wash); }
.tour-player:not(.is-phone) .tour-progress i { background: var(--sky); }
.tour-player:not(.is-phone) .tour-bar .tour-count { margin: 0 0 6px; font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0; color: var(--sky); text-transform: none; }
.tour-player:not(.is-phone) .tour-bar .tour-say { font-size: 20px; line-height: 1.45; font-weight: 500; color: var(--navy); }
.tour-player:not(.is-phone) .tour-prev { border-color: var(--line); background: var(--white); color: var(--navy); }
.tour-player:not(.is-phone) .tour-prev:hover:not(:disabled) { border-color: var(--navy); background: var(--white); }
.tour-player:not(.is-phone) .tour-next { border-color: var(--navy); background: var(--navy); color: var(--white); }
.tour-player:not(.is-phone) .tour-next:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.tour-player:not(.is-phone) .tour-again { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tour-player:not(.is-phone) .tour-controls .btn { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: 999px; }
.tour-player:not(.is-phone) .tour-controls .btn:focus-visible { outline: 3px solid var(--focus); }
/* Wide: the sentence and the buttons on the left, the screen on the right. */
@container tour (min-width: 860px) {
  .tour-player:not(.is-phone) .tour-card { grid-template-columns: minmax(260px, 33%) minmax(0, 1fr); }
  .tour-player:not(.is-phone) .tour-view, .tour-player:not(.is-phone) .tour-payoff-card { grid-column: 2; grid-row: 1; }
  .tour-player:not(.is-phone) .tour-bar { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr); align-content: space-between; padding: 34px 30px 28px; border-top: 0; border-right: 1px solid var(--line); }
  .tour-player:not(.is-phone) .tour-text { align-content: start; }
  .tour-player:not(.is-phone) .tour-bar .tour-say { font-size: clamp(20px, 2.2cqi, 26px); line-height: 1.4; }
  .tour-player:not(.is-phone) .tour-controls { flex-wrap: wrap; }
  .tour-player:not(.is-phone) .tour-next, .tour-player:not(.is-phone) .tour-again { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { .tour-player:not(.is-phone) .tour-shot { transition: none; } }
@media (forced-colors: active) { .tour-player:not(.is-phone) .tour-card { border: 1px solid CanvasText; } .tour-player:not(.is-phone) .tour-ring { border-color: Highlight; } }
