/* The guided tour engine's stylesheet (site/www/tour.js). Site tokens only (v2.css and its themes), so any page
   that loads v2.css can carry a tour. The ring is the only thing drawn over the product; it never takes a click.
   Motion: the meter and the ring move when a step changes. Nothing loops. */

.tour{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start;text-align:left}
.tour .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- the coach ---------- */
.tour-coach{display:flex;flex-direction:column;gap:12px;min-width:0}
.tour-bar{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;font-size:16px}
.tour-count{font-weight:700;margin-right:auto;color:var(--text)}
.tour-link{font:inherit;font-size:16px;font-weight:600;color:var(--blue-hi);background:none;border:0;padding:4px 0;cursor:pointer;text-align:left}
.tour-link:hover{text-decoration:underline}
.tour-link[hidden]{display:none}
.tour-meter{height:6px;border-radius:3px;background:var(--line2);overflow:hidden}
.tour-meter i{display:block;height:100%;width:0;background:var(--blue);transition:width .4s var(--ease,ease)}
.tour-body h3{font:700 24px/1.2 var(--head);margin:6px 0 6px;color:var(--text)}
.tour-lead{margin:0 0 14px;font-size:17px;line-height:1.45;color:var(--muted)}
.tour-go{display:block;width:100%;font:600 17px var(--body);color:#fff;background:var(--blue);border:0;border-radius:10px;padding:13px 18px;cursor:pointer;
  transition:filter .15s}
.tour-go:hover{filter:brightness(1.1)}
.tour :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--blue);outline-offset:2px}

.tour-you{margin:0 0 14px;border:1px solid var(--line2);border-radius:12px;padding:10px 14px;background:var(--panel)}
.tour-you summary{font-size:16px;font-weight:600;cursor:pointer;color:var(--text)}
.tour-you label{display:flex;flex-direction:column;gap:4px;margin-top:10px;font-size:15px;font-weight:600;color:var(--muted)}
.tour-you input,.tour-you select{font:16px var(--body);color:var(--text);background:var(--panel2);border:1px solid var(--line2);border-radius:8px;padding:9px 10px;width:100%}
.tour-you small{display:block;margin-top:10px;font-size:14px;line-height:1.4;color:var(--muted)}

.tour-steps{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:8px}
.tour-steps li{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line2);border-radius:12px;background:var(--panel);
  transition:border-color .15s,background .15s}
.tour-steps i{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--line2);
  font:600 15px var(--head);font-style:normal;color:var(--muted)}
.tour-steps b{display:block;font-size:17px;font-weight:600;line-height:1.3;color:var(--text)}
.tour-steps p{margin:4px 0 0;font-size:16px;line-height:1.4;color:var(--text)}
.tour-steps small{display:block;margin-top:3px;font-size:15px;line-height:1.35;color:var(--muted)}
.tour-steps li.on{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 9%,var(--panel))}
.tour-steps li.on i{background:var(--blue);border-color:var(--blue);color:#fff}
.tour-steps li.done i{background:var(--blue);border-color:var(--blue)}
.tour-steps li.done i::after{content:"";width:9px;height:5px;border:solid #fff;border-width:0 0 2.5px 2.5px;transform:translateY(-1px) rotate(-45deg)}

.tour-finish{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.tour-tick{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--blue)}
.tour-tick::after{content:"";width:16px;height:8px;border:solid #fff;border-width:0 0 3px 3px;transform:translateY(-2px) rotate(-45deg)}
.tour-cta{margin:4px 0 6px}
.tour-price{margin:0 0 6px;font-size:17px;font-weight:700;color:var(--text)}
.tour-steps li:focus,.tour-body h3:focus{outline:none}
.tour-steps li:focus-visible,.tour-body h3:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.tour-more{display:flex;flex-wrap:wrap;gap:6px 20px}
.tour[data-mode=done] .tour-steps small,.tour[data-mode=done] .tour-steps .sr{display:none}
.tour[data-mode=done] .tour-steps li{padding:7px 12px}
.tour-sample{margin:0;font-size:15px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:8px;border-top:1px solid var(--line2);padding-top:10px}
.tour-sample::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--pp,var(--blue))}

/* ---------- the product and the ring ---------- */
.tour-stage{position:relative;overflow:hidden;border-radius:16px;border:1px solid var(--line2);min-width:0}
.tour-stage .tour-app{height:var(--tour-h,auto)}   /* a profile's "height": an app shell needs one, a page of cards does not */
.tour-ring{position:absolute;z-index:40;pointer-events:none;border-radius:12px;
  box-shadow:0 0 0 3px var(--blue),0 0 0 7px color-mix(in srgb,var(--blue) 25%,transparent),0 0 0 200vmax rgba(6,9,18,.34);
  transition:left .25s var(--ease,ease),top .25s var(--ease,ease),width .25s var(--ease,ease),height .25s var(--ease,ease)}
html.light .tour-ring{box-shadow:0 0 0 3px var(--blue),0 0 0 7px color-mix(in srgb,var(--blue) 22%,transparent),0 0 0 200vmax rgba(20,28,48,.2)}
.tour-ring span{position:absolute;left:-3px;top:calc(100% + 10px);background:var(--blue);color:#fff;font:600 14px/1 var(--body);
  padding:7px 10px;border-radius:8px;white-space:nowrap}
.tour-ring.up span{top:auto;bottom:calc(100% + 10px)}
.tour-ring.end span{left:auto;right:-3px}

/* ---------- full screen (the tour sits on <body>) ---------- */
html.tour-locked,html.tour-locked body{overflow:hidden}
.tour.tour-full{position:fixed;inset:0;z-index:1000;margin:0;padding:14px;gap:14px;height:100dvh;background:var(--bg);
  grid-template-columns:320px minmax(0,1fr);align-items:stretch}
.tour-full .tour-coach{overflow:auto}
.tour-full .tour-stage,.tour-full .tour-stage .tour-app{height:100%}
.tour-full .tour-stage{min-height:0;overflow:auto}

/* ---------- phones: one step at a time above the sample, full screen one tap away ---------- */
@media (max-width:759px){
  .tour{grid-template-columns:minmax(0,1fr);gap:12px}
  .tour-stage .tour-app[style*="--tour-h"]{height:min(600px,74svh)}
  .tour[data-mode=intro] .tour-steps,.tour[data-mode=free] .tour-steps{display:none}
  .tour[data-mode=steps] .tour-steps li:not(.on){display:none}
  .tour[data-mode=steps] .tour-steps{margin:0}
  .tour-body h3{font-size:21px}
  .tour.tour-full{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);padding:8px;gap:8px}
  .tour-full .tour-coach{max-height:38dvh;gap:8px}
  .tour-full .tour-sample{display:none}
  .tour-full[data-mode=done] .tour-steps{display:none}
}
@media (prefers-reduced-motion:reduce){.tour-meter i,.tour-ring,.tour-steps li,.tour-go{transition:none}}
