/* The product demonstration.
 *
 * A visitor can land on any of a hundred and twenty pages, most of them articles, and most of them
 * from a search that had nothing to do with us. This block is what tells that person, without
 * making them click, what the thing on this domain actually is.
 *
 * It draws the application: the same dark top bar, the same left rail grouped by stage, the same
 * tab rows and tables. Deliberately not an illustration. Somebody who buys after seeing this opens
 * the product and finds the screen they were shown.
 *
 * Everything is scoped under .cw-tour so it can sit on any page without touching it. The palette
 * reads the site's own tokens where they exist, with the real values as a fallback.
 */

.cw-tour{
  --cw-ink:var(--ink,#11261F);
  --cw-deep:var(--deep,#0F3D3A);
  --cw-teal:var(--teal,#1F6E69);
  --cw-lime:var(--lime,#C8F8A9);
  --cw-aux:var(--aux,#BCD5D0);
  --cw-surface:var(--surface,#fff);
  --cw-muted:var(--muted,#5E7269);
  --cw-flag:var(--flag,#A83C28);
  --cw-rail:#0B302E;
  background:var(--cw-deep);
  color:#fff;
  padding:54px 24px 46px;
  font-family:'Inter Tight',system-ui,-apple-system,'Segoe UI',sans-serif;
}
.cw-tour *{box-sizing:border-box}
.cw-in{max-width:1180px;margin:0 auto}

.cw-head{max-width:660px;margin-bottom:24px}
.cw-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-lime);font-weight:700;margin:0 0 10px}
.cw-head h2{font-size:clamp(23px,3.2vw,32px);font-weight:600;letter-spacing:-.02em;margin:0 0 10px;line-height:1.15;color:#fff}
.cw-lede{font-size:15px;line-height:1.6;color:rgba(255,255,255,.72);margin:0}

/* One height for every step, so the page never jumps as they change. */
.cw-stage{position:relative;min-height:461px}
.cw-scene{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transform:translateY(9px);
  transition:opacity .45s ease,transform .45s ease,visibility .45s;
  display:flex;gap:22px;align-items:flex-start}
.cw-scene.is-on{position:relative;opacity:1;visibility:visible;transform:none}

/* ---- the application ------------------------------------------------------ */

.cw-app{flex:0 1 806px;min-width:0;background:var(--cw-surface);color:var(--cw-ink);border-radius:3px;
  overflow:hidden;box-shadow:0 20px 50px -24px rgba(0,0,0,.8)}

.cw-appbar{height:40px;display:flex;align-items:center;background:var(--cw-rail);
  border-bottom:1px solid rgba(200,248,169,.22);padding-right:16px}
.cw-brand{flex:0 0 168px;padding-left:16px;color:#fff;font-size:13.5px;letter-spacing:-.01em;font-weight:400}
.cw-brand b{font-weight:700}
.cw-topnav{display:flex;gap:16px;flex:1}
.cw-topnav a{color:#A9C0B8;font-size:11.5px;font-weight:600;padding:12px 0;border-bottom:2px solid transparent}
.cw-topnav a.on{color:#fff;border-bottom-color:var(--cw-lime)}
.cw-who{color:#A9C0B8;font-size:11px;font-weight:600}

.cw-appbody{display:flex;align-items:stretch;min-height:352px}

.cw-rail{flex:0 0 168px;background:var(--cw-rail);color:#DCE8E1;padding-bottom:12px;display:flex;flex-direction:column}
.cw-proj{padding:13px 16px 12px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:6px}
.cw-proj span{display:block;font-size:8px;letter-spacing:.16em;text-transform:uppercase;color:rgba(220,232,225,.5);font-weight:700}
.cw-proj b{display:block;margin-top:4px;font-size:11.5px;font-weight:600;color:#fff;line-height:1.25}
.cw-rail h6{margin:0;font-size:8px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(220,232,225,.42);padding:9px 16px 5px;font-weight:600}
.cw-rail nav{display:flex;flex-direction:column}
.cw-rail nav a{padding:5px 16px;border-left:2px solid transparent;color:rgba(220,232,225,.78);
  font-size:10.5px;font-weight:500;line-height:1.35}
.cw-rail nav a.on{background:rgba(200,248,169,.1);color:#fff;border-left-color:var(--cw-lime);font-weight:600}
.cw-railfoot{margin-top:auto;padding:11px 16px 0;border-top:1px solid rgba(255,255,255,.1);
  color:#A9C0B8;font-size:10px;font-weight:600}

.cw-main{flex:1;min-width:0;padding:16px 20px 18px}
.cw-tabsrow{display:flex;gap:2px;flex-wrap:wrap;border-bottom:1px solid var(--cw-aux);margin:-2px 0 14px}
.cw-tabsrow a{padding:6px 11px;font-size:10.5px;font-weight:600;color:var(--cw-muted);
  border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.cw-tabsrow a.on{color:var(--cw-ink);border-bottom-color:var(--cw-teal)}
.cw-h1{font-size:16px;font-weight:600;letter-spacing:-.01em;margin:0}
.cw-subline{font-size:11.5px;color:var(--cw-muted);margin:4px 0 0;line-height:1.45}
.cw-content{margin-top:12px}
.cw-cnote{font-size:10.5px;color:var(--cw-muted);margin:10px 0 0;padding-top:8px;border-top:1px solid var(--cw-aux)}

/* ---- content pieces, the product's own ------------------------------------ */

.cw-row{display:grid;grid-template-columns:74px 1fr 132px 116px;gap:10px;align-items:center;
  padding:7px 4px;border-top:1px solid rgba(188,213,208,.5);font-size:11.5px;line-height:1.35}
.cw-row.cw-hd{border-top:0;padding-bottom:3px;font-size:8.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--cw-muted);font-weight:700}
.cw-r{text-align:right}
.cw-n{font-family:'IBM Plex Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums;font-size:11px}
.cw-lit{background:rgba(200,248,169,.26)}
.cw-bad{background:rgba(168,60,40,.06)}
.cw-off{opacity:.5}

.cw-chip{display:inline-block;font-style:normal;font-size:8.5px;font-weight:700;letter-spacing:.03em;
  padding:2px 6px;border-radius:2px;background:rgba(15,61,58,.08);color:var(--cw-muted);white-space:nowrap}
.cw-chip.ok{background:rgba(31,110,105,.12);color:var(--cw-teal)}
.cw-chip.amb{background:rgba(200,248,169,.72);color:#3C4A20}
.cw-chip.hot{background:rgba(168,60,40,.12);color:var(--cw-flag)}

.cw-tiles{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:11px}
.cw-tiles.three{grid-template-columns:repeat(3,1fr)}
.cw-tile{border:1px solid var(--cw-aux);border-radius:2px;padding:9px 11px;display:flex;flex-direction:column;gap:2px}
.cw-tile.hot{border-color:rgba(168,60,40,.42);background:rgba(168,60,40,.04)}
.cw-tile.hot b{color:var(--cw-flag)}
.cw-tile span:first-child{font-size:8px;letter-spacing:.14em;text-transform:uppercase;color:var(--cw-muted);font-weight:700}
.cw-tile b{font-size:16px;font-weight:600;letter-spacing:-.02em;
  font-family:'IBM Plex Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums}
.cw-tile em{font-style:normal;font-size:9.5px;color:var(--cw-muted);line-height:1.35}

.cw-find{display:flex;gap:8px;align-items:baseline;padding:6px 4px;font-size:11.5px;
  border-top:1px solid rgba(188,213,208,.5)}

.cw-step{display:flex;justify-content:space-between;gap:16px;padding:6px 4px;font-size:11.5px;
  border-top:1px solid rgba(188,213,208,.5)}
.cw-step:first-child{border-top:0}
.cw-step.tot{border-top:2px solid var(--cw-deep);font-weight:600;margin-top:2px}
.cw-step b{font-family:'IBM Plex Mono',ui-monospace,monospace;font-variant-numeric:tabular-nums;font-weight:600}
.cw-step b.neg{color:var(--cw-teal)}

.cw-bars{display:flex;flex-direction:column;gap:7px;margin-top:4px}
.cw-brow{display:grid;grid-template-columns:96px 1fr 66px;gap:10px;align-items:center;font-size:11px}
.cw-brow i{display:block;height:9px;background:rgba(15,61,58,.08);border-radius:1px;overflow:hidden}
.cw-brow i b{display:block;height:100%;background:var(--cw-teal)}
.cw-brow i b.amb{background:#9BC24A}
.cw-brow i b.hot{background:var(--cw-flag)}
.cw-brow span:last-child{text-align:right;color:var(--cw-muted)}

.cw-pages{display:flex;gap:6px;margin-bottom:11px}
.cw-pages i{flex:1;height:38px;border:1px solid var(--cw-aux);border-radius:2px;
  background:linear-gradient(var(--cw-rail) 0 8px,#fff 8px 100%)}

/* ---- the bubble ----------------------------------------------------------- */

.cw-bub{position:relative;flex:0 0 286px;margin-top:var(--y,70px);background:var(--cw-lime);
  color:var(--cw-ink);padding:14px 16px;border-radius:3px;font-size:12.5px;line-height:1.55;
  box-shadow:0 16px 38px -16px rgba(0,0,0,.6)}
.cw-bub b{display:block;font-weight:700;margin-bottom:5px;font-size:13px}
.cw-bub::before{content:"";position:absolute;left:-6px;top:22px;width:12px;height:12px;
  background:var(--cw-lime);transform:rotate(45deg)}
.cw-scene.is-on .cw-bub{animation:cw-pop .42s .26s both}
@keyframes cw-pop{from{opacity:0;transform:translate(-8px,4px)}to{opacity:1;transform:none}}

/* ---- controls -------------------------------------------------------------- */

.cw-ctl{display:flex;align-items:center;gap:9px;margin-top:24px;flex-wrap:wrap}
.cw-nav{width:30px;height:30px;flex:0 0 auto;border:1px solid rgba(255,255,255,.28);background:none;
  color:#fff;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.cw-nav:hover{border-color:var(--cw-lime);color:var(--cw-lime)}
.cw-tabs{display:flex;gap:6px;flex-wrap:wrap;flex:1 1 auto}
.cw-tab{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.28);background:none;
  color:rgba(255,255,255,.8);font:inherit;font-size:11.5px;font-weight:600;padding:6px 11px;
  border-radius:2px;cursor:pointer;white-space:nowrap}
.cw-tab span{position:relative;z-index:1}
.cw-tab:hover{border-color:var(--cw-lime);color:#fff}
.cw-tab.is-on{border-color:var(--cw-lime);color:var(--cw-ink)}
.cw-tab.is-on::before{content:"";position:absolute;inset:0;background:var(--cw-lime)}
/* the wash shows how long is left on this step, and only while it is actually playing */
.cw-tab.is-on::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.45);
  transform-origin:left;transform:scaleX(0)}
.cw-tour.is-playing .cw-tab.is-on::after{animation:cw-fill var(--cw-dwell,7s) linear both}
@keyframes cw-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.cw-note{font-size:11px;color:rgba(255,255,255,.55);margin:14px 0 0}

/* ---- narrow screens --------------------------------------------------------
   The rail folds away and the bubble stops floating. A left rail squeezed onto a
   phone is nine unreadable words, so it goes rather than shrinks. */
@media(max-width:980px){
  .cw-tour{padding:40px 18px 36px}
  .cw-stage{min-height:0}
  .cw-scene{position:static;display:none;transform:none;transition:none}
  .cw-scene.is-on{display:block}
  .cw-app{flex:1 1 auto}
  .cw-bub{position:static;width:auto;margin-top:14px}
  .cw-bub::before{display:none}
  .cw-scene.is-on .cw-bub{animation:none}
  .cw-rail{display:none}
  .cw-brand{flex:0 0 auto}
  .cw-appbody{min-height:0}
  .cw-row{grid-template-columns:56px 1fr 96px;font-size:11px}
  .cw-row span:nth-child(4){display:none}
  .cw-tiles.three{grid-template-columns:1fr}
  .cw-brow{grid-template-columns:80px 1fr 58px}
}

@media(prefers-reduced-motion:reduce){
  .cw-scene{transition:none}
  .cw-scene.is-on .cw-bub{animation:none}
  .cw-tour.is-playing .cw-tab.is-on::after{animation:none}
}
