/* The "What is Solicitors Point?" tour. Scenes stack in one place; the one with .on is shown and its animations run. */
.tour { max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; }
.tbar { display: flex; gap: 5px; }
.tseg { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 4px; background: var(--line-strong); cursor: pointer; overflow: hidden; position: relative; }
.tseg::before { content: ""; position: absolute; inset: -12px 0; } /* bigger tap area */
.tseg span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; }
.tseg.done span { width: 100%; }
.thead { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; }
.tstep { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.tstep .dot { margin: 0 4px; }
.tctl { display: flex; gap: 6px; }
.tbtn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.tbtn:hover { border-color: var(--ink); }
.tbtn:focus-visible, .tseg:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.ttrack { display: grid; }
.ttrack[hidden], .tplayer[hidden], .tpick[hidden] { display: none; }
.tscene { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .5s; }
.tscene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.tline { font-family: var(--serif); font-weight: 400; font-size: clamp(23px, 3.6vw, 32px); line-height: 1.2; letter-spacing: -0.01em; margin: 10px 0 20px; min-height: 2.4em; text-wrap: balance; }
.tline.big { font-size: clamp(30px, 5.4vw, 46px); }

.tstage { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; min-height: 330px; overflow: hidden; }
.ttag { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--tint); border-radius: 20px; padding: 3px 10px; }
.ttag.live { color: var(--ok); background: var(--ok-soft); }
.ttag.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }

/* shared entrance */
@keyframes tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tpop { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 100% { opacity: 1; transform: none; } }
.on [style*="--d"] { animation: tin .5s cubic-bezier(.2, .7, .2, 1) var(--d) both; }

/* 1 find */
.tsearch { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 6px 6px 6px 16px; margin-top: 18px; font-size: 17px; min-height: 52px; }
.tq { white-space: nowrap; overflow: hidden; }
.tcaret { width: 2px; height: 22px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tgo { margin-left: auto; background: var(--black); color: #fff; font-weight: 600; font-size: 15px; border-radius: 10px; padding: 9px 14px; }
.tresults { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tresults li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; opacity: 0; }
.on .tresults li { animation: tin .5s cubic-bezier(.2, .7, .2, 1) var(--d) both; }
.tav { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.tinfo { display: grid; min-width: 0; }
.tinfo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tinfo small, .trate small { color: var(--muted); font-size: 13px; }
.trate { margin-left: auto; white-space: nowrap; }
.tstars i { font-style: normal; color: var(--line-strong); }
.tstars i.on { color: var(--star); }

/* 2 book */
.tday { font-weight: 600; margin: 22px 0 10px; }
.tslots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tslots span { text-align: center; padding: 12px 0; border: 1.5px solid var(--line-strong); border-radius: 12px; font-weight: 600; }
.on .tslots .pick { animation: tpick .3s ease 1.3s both; }
@keyframes tpick { to { background: var(--black); color: #fff; border-color: var(--black); } }
.tcta { margin-top: 16px; text-align: center; background: var(--line-strong); color: #fff; font-weight: 600; border-radius: 12px; padding: 14px; }
.on .tcta { animation: tcta .3s ease 1.5s both; }
@keyframes tcta { to { background: var(--black); } }
.ttoast { position: absolute; right: 18px; bottom: 18px; width: min(270px, calc(100% - 36px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(20, 20, 20, .45); padding: 14px 16px; display: grid; gap: 2px; opacity: 0; }
.on .ttoast { animation: tpop .5s cubic-bezier(.2, .7, .2, 1) 2.3s both; }
.ttoast i { position: absolute; top: 19px; left: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.ttoast b { padding-left: 18px; }
.ttoast small { color: var(--ok); font-weight: 600; }

/* 3 reviews */
.trev { margin-top: 22px; }
.tstarsbig i { font-style: normal; font-size: 30px; color: var(--line-strong); }
.on .tstarsbig i { animation: tstar .25s ease both; }
.on .tstarsbig i:nth-child(1) { animation-delay: .5s; } .on .tstarsbig i:nth-child(2) { animation-delay: .65s; } .on .tstarsbig i:nth-child(3) { animation-delay: .8s; } .on .tstarsbig i:nth-child(4) { animation-delay: .95s; } .on .tstarsbig i:nth-child(5) { animation-delay: 1.1s; }
@keyframes tstar { from { transform: scale(.6); } to { color: var(--star); transform: none; } }
.trev p { font-family: var(--serif); font-size: 21px; line-height: 1.35; margin: 10px 0 6px; }
.trev small { color: var(--muted); }
.treply { margin-top: 18px; margin-left: 28px; border-left: 3px solid var(--ink); padding: 4px 0 4px 14px; opacity: 0; }
.on .treply { animation: tin .5s ease 2.2s both; }
.treply p { margin: 4px 0 0; color: var(--muted); }

/* 4 quotes */
.treq { margin-top: 20px; display: grid; gap: 2px; padding: 14px 16px; background: var(--tint); border-radius: 14px; }
.treq small, .treq span { color: var(--muted); font-size: 14px; }
.tquotes { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tqcard { border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 14px; display: grid; gap: 4px; opacity: 0; }
.on .tqcard { animation: tpop .5s cubic-bezier(.2, .7, .2, 1) var(--d) both; }
.tqcard b { font-size: 24px; letter-spacing: -0.02em; }
.tqcard small { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* 5 ask */
.tbubble { margin-top: 18px; padding: 14px 16px; border-radius: 18px; max-width: 88%; line-height: 1.45; }
.tbubble small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.tbubble.q { background: var(--tint); border-bottom-left-radius: 6px; opacity: 0; }
.tbubble.a { margin-left: auto; background: var(--black); color: #fff; border-bottom-right-radius: 6px; opacity: 0; }
.tbubble.a small { color: #c9c7c2; }
.on .tbubble.q { animation: tin .5s ease .4s both; }
.on .tbubble.a { animation: tin .5s ease 1.9s both; }
.tmini { display: table; margin-top: 10px; background: #fff; color: var(--ink); border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: 14px; }

/* 6 case builder */
.tdocs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tdocs span { font-size: 13px; font-weight: 600; padding: 7px 12px 7px 30px; border-radius: 10px; background: var(--tint); position: relative; opacity: 0; }
.tdocs span::before { content: ""; position: absolute; left: 11px; top: 8px; width: 11px; height: 14px; border: 1.5px solid var(--ink); border-radius: 2px; }
.on .tdocs span { animation: tin .4s ease var(--d) both; }
.tform { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.tform li { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; opacity: 0; }
.on .tform li { animation: tin .45s ease var(--d) both; }
.tform small { grid-column: 1; color: var(--muted); font-size: 12px; }
.tform b { grid-column: 1; }
.tform i { grid-column: 2; grid-row: 1 / 3; font-style: normal; color: var(--ok); font-weight: 700; }
.tready { margin-top: 14px; display: inline-block; background: var(--ok-soft); color: var(--ok); font-weight: 600; padding: 8px 14px; border-radius: 20px; opacity: 0; }
.on .tready { animation: tpop .5s ease 3.3s both; }

/* 7 hire */
.tjob { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; opacity: 0; }
.on .tjob { animation: tin .5s ease .4s both; }
.on .tjob.tloc { animation-delay: 1.8s; }
.tjob small, .tjob span { grid-column: 1; color: var(--muted); font-size: 14px; }
.tjob b { grid-column: 1; font-size: 18px; }
.tcount { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; text-align: right; }
.tcl { grid-column: 2; grid-row: 3; font-style: normal; font-size: 13px; color: var(--muted); text-align: right; }
.tbooked { grid-column: 2; grid-row: 1 / 4; align-self: center; background: var(--ok-soft); color: var(--ok); font-size: 14px; padding: 8px 12px; border-radius: 20px; opacity: 0; }
.on .tbooked { animation: tpop .4s ease 3s both; }

/* 8 lupin */
.s-grow .tstage { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
.tring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-top: 14px; }
.tring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tring circle { fill: none; stroke-width: 9; }
.tring .bg { stroke: var(--tint); }
.tring .fg { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: calc(327 * (1 - .54)); }
.on .tring .fg { transition: stroke-dashoffset 2.6s cubic-bezier(.3, .6, .2, 1) .8s; stroke-dashoffset: calc(327 * (1 - .82)); }
.tring > div { position: relative; display: grid; justify-items: center; }
.tscore { font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.tring small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tjobs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.tjobs li { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; opacity: 0; }
.on .tjobs li { animation: tin .45s ease var(--d) both; }
.tjobs i { font-style: normal; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* end */
.tends { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.s-end .tline { min-height: 0; }

@media (max-width: 560px) {
  .tchoose, .s-nolist .tstage { grid-template-columns: 1fr; }
  .tline { min-height: 3.6em; }
  .tour { padding-top: 18px; }
  .tstage { padding: 18px; min-height: 360px; }
  .tquotes { grid-template-columns: 1fr; }
  .tslots { grid-template-columns: repeat(2, 1fr); }
  .s-grow .tstage { grid-template-columns: 1fr; justify-items: center; }
  .tjobs { width: 100%; }
  .tsearch { font-size: 15px; }
  .ttoast { position: static; width: auto; margin-top: 14px; }
}

/* chooser */
.tpick { text-align: center; padding: 40px 0 20px; }
.tkick { margin: 0; font-weight: 600; color: var(--muted); }
.tpick .tline { min-height: 0; margin: 8px 0 28px; }
.tchoose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tchoice { display: grid; gap: 6px; text-align: left; padding: 24px; border-radius: var(--radius-lg); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.tchoice b { font-size: 21px; letter-spacing: -0.01em; }
.tchoice b::after { content: " \2192"; }
.tchoice span { color: var(--muted); }
.tchoice:hover { border-color: var(--ink); transform: translateY(-2px); }
.tchoice:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tchoice[data-go="firm"] { background: var(--black); color: #fff; border-color: var(--black); }
.tchoice[data-go="firm"] span { color: #c9c7c2; }
.tsmall { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.tbtn.off { opacity: .55; text-decoration: line-through; }
.tswap { margin-top: 22px; text-align: center; color: var(--muted); }

/* not a list */
.s-nolist .tstage { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; }
.told small, .tnew small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.told p { margin: 0 0 8px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; display: grid; color: var(--muted); opacity: 0; }
.told p span { font-size: 13px; }
.on .told p { animation: tin .4s ease var(--d) both, tdim .6s ease 1.3s forwards; }
@keyframes tdim { to { opacity: .35; text-decoration: line-through; } }
.tnew { border: 1.5px solid var(--ink); border-radius: 16px; padding: 14px 16px; opacity: 0; }
.on .tnew { animation: tpop .5s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
.tnew b { font-size: 18px; }
.tnew ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.tnew li { display: flex; gap: 8px; align-items: center; opacity: 0; }
.on .tnew li { animation: tin .4s ease var(--d) both; }
.tnew li i, .tmail li i { font-style: normal; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* your firm */
.tfirm { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.tav.big { width: 56px; height: 56px; font-size: 18px; }
.tfirm div { display: grid; }
.tfirm b { font-size: 20px; }
.tfirm small { color: var(--muted); }
.tswitch { margin-left: auto; width: 56px; height: 32px; border-radius: 20px; background: var(--line-strong); position: relative; }
.tswitch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.on .tswitch { animation: tsw .3s ease 1.4s both; }
.on .tswitch i { animation: tknob .3s ease 1.4s both; }
@keyframes tsw { to { background: var(--ok); } }
@keyframes tknob { to { transform: translateX(24px); } }
.tstate { margin-top: 16px; font-weight: 600; position: relative; height: 24px; }
.tstate span { position: absolute; left: 0; }
.tstate .off { color: var(--warn); }
.tstate .onl { color: var(--ok); opacity: 0; }
.on .tstate .off { animation: tout .2s ease 1.4s forwards; }
.on .tstate .onl { animation: tin .3s ease 1.5s both; }
@keyframes tout { to { opacity: 0; } }
.tnotes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tnotes span { padding: 8px 14px; border-radius: 20px; background: var(--tint); font-weight: 600; font-size: 14px; opacity: 0; }

/* inbox */
.thours { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 22px; }
.thours small { width: 100%; font-weight: 600; color: var(--muted); font-size: 13px; }
.thours span { display: grid; text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--tint); font-weight: 600; font-size: 14px; opacity: 0; }
.thours em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.tmail { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.tmail li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; opacity: 0; }
.tmail li i { grid-row: 1 / 3; width: 10px; height: 10px; background: var(--ok); }
.tmail li span { color: var(--muted); font-size: 14px; }

/* reply */
.treply.typing p { overflow: hidden; white-space: nowrap; max-width: 0; }
.on .treply.typing p { animation: ttype 1.6s steps(40) 2.4s forwards; }
@keyframes ttype { to { max-width: 100%; white-space: normal; } }
.tbubble.sm { font-size: 14px; max-width: 70%; margin-top: 14px; }
.on .tbubble.sm { animation: tin .5s ease 4s both; }

/* Reduced motion: no timer, every scene shown in its finished state, one after another. */
@media (prefers-reduced-motion: reduce) {
  .tbar, .thead { display: none; }
  .ttrack { gap: 40px; }
  .tscene, .tscene * { grid-area: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; animation: none !important; transition: none !important; }
  .tslots .pick { background: var(--black); color: #fff; border-color: var(--black); }
  .tcta { background: var(--black); }
  .tstarsbig i { color: var(--star); }
  .tring .fg { stroke-dashoffset: calc(327 * (1 - .82)); }
}

@media (max-width: 560px) {
  .tchoose, .s-nolist .tstage { grid-template-columns: 1fr; }
  .tchoice { padding: 18px 20px; }
}
