/* Guided tour over the real FACTURIZE screens (demo data, invented companies), drawn on a 1280x720 canvas.
   Every class is prefixed with t- so nothing collides with the landing's own styles. */
.tour {
  --t-navy: #16233a; --t-cream: #f6f2e8; --t-ink: #0f1011; --t-fg: #dfe5ee;
  --t-win: "Segoe UI", system-ui, sans-serif;
  margin-top: 40px;
}
.tour * { box-sizing: border-box; }
.t-stage { position: relative; width: 100%; max-width: min(1280px, calc((100vh - 200px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto;
  background: var(--t-ink); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 100px -40px var(--sh-strong, rgba(0, 0, 0, .9)); }
.t-stage:fullscreen { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; border: 0; }
.t-canvas { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; }

.t-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; overflow: hidden; }
.t-scene.t-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.t-scene.t-snap, .t-scene.t-snap * { transition: none !important; }

/* timeline: anything with data-at shows when its moment comes */
.tour [data-at] { opacity: 0; transition: opacity .45s ease, transform .45s ease; }
.tour [data-at].t-in { opacity: 1; }
.t-zl { position: absolute; inset: 0; opacity: 1 !important; transform: none; transition: transform 1.6s cubic-bezier(.3, .6, .2, 1) !important; }
.t-zl.t-in { transform: scale(var(--z)); }
.t-shot { position: absolute; inset: 0; width: 1280px; height: 720px; display: block; max-width: none; }
.t-ring { position: absolute; border: 3px solid var(--cyan); border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 4000px rgba(4, 7, 12, .5), 0 0 26px 4px rgba(0, 179, 221, .55); }
.t-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 36px; opacity: 1 !important; z-index: 5;
  transform: translate(var(--x0), var(--y0)); transition: transform 1.2s cubic-bezier(.35, .7, .2, 1) !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.t-cursor.t-in { transform: translate(var(--x1), var(--y1)); }
.t-cursor svg { width: 26px; height: 36px; display: block; }
.t-ripple { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid #fff; z-index: 4; transform: scale(.3); }
.t-ripple.t-in { animation: t-ripple .7s ease-out forwards; }
@keyframes t-ripple { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
.t-fly { position: absolute; left: 0; top: 0; opacity: 1 !important; z-index: 4; transform: translate(var(--x0), var(--y0)) scale(var(--s0, 1));
  transition: transform 1.2s cubic-bezier(.35, .7, .2, 1), opacity .4s ease !important; }
.t-fly.t-in { transform: translate(var(--x1), var(--y1)) scale(var(--s1, 1)); }
.t-fly.t-gone { opacity: 0 !important; }

.t-cap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1060px; max-width: calc(100% - 60px);
  background: var(--t-cream); color: var(--t-navy); border-radius: 14px; padding: 14px 22px 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); z-index: 8; }
.t-cap .t-k { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5d6574; }
.t-cap p { margin: 4px 0 0; font: 400 21px/1.4 var(--sans); text-wrap: balance; max-width: none; color: var(--t-navy); }
.t-cap p b { font-weight: 600; }
.t-cap p code { font: 500 18px var(--mono); }

/* Windows replicas (Explorer and Excel), where the step happens outside FACTURIZE */
.t-desk { position: absolute; inset: 0; background: #12345a; }
.t-xp, .t-xl { position: absolute; background: #fff; color: #1f1f1f; font: 13px/1.35 var(--t-win); border: 1px solid #2b6cb0; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); overflow: hidden; }
.t-xp-title { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 13px; border-bottom: 1px solid #e5e5e5; }
.t-xp-title .t-ctl { margin-left: auto; letter-spacing: 18px; color: #555; }
.t-xp-ribbon { height: 28px; display: flex; gap: 18px; align-items: center; padding: 0 14px; background: #f3f3f3; border-bottom: 1px solid #e5e5e5; font-size: 12.5px; color: #333; }
.t-xp-ribbon span:first-child { background: #1979ca; color: #fff; padding: 4px 12px; margin-left: -14px; }
.t-xp-addr { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-bottom: 1px solid #e5e5e5; color: #555; }
.t-xp-addr .t-box { flex: 1; height: 24px; border: 1px solid #d9d9d9; display: flex; align-items: center; padding: 0 8px; color: #222; white-space: nowrap; overflow: hidden; }
.t-xp-addr .t-search { width: 200px; height: 24px; border: 1px solid #d9d9d9; color: #888; padding: 2px 8px; }
.t-xp-body { display: grid; grid-template-columns: 190px 1fr; height: calc(100% - 128px); }
.t-xp-nav { border-right: 1px solid #ececec; padding: 8px 0; color: #333; }
.t-xp-nav div { padding: 3px 14px; display: flex; gap: 8px; align-items: center; }
.t-xp-nav .t-on { background: #cce8ff; }
.t-xp-list { padding: 4px 0; }
.t-xp-row { display: grid; grid-template-columns: 2.4fr 1.6fr 1.4fr .8fr; gap: 10px; padding: 4px 16px; align-items: center; white-space: nowrap; }
.t-xp-row.t-h { color: #4c607a; border-bottom: 1px solid #ececec; padding-top: 6px; padding-bottom: 6px; }
.t-xp-row .t-n { display: flex; gap: 8px; align-items: center; }
.t-xp-row.t-sel { background: #cce8ff; }
.t-xp-status { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; border-top: 1px solid #ececec; padding: 3px 12px; color: #555; font-size: 12px; background: #fff; }
.t-ico-f { width: 18px; height: 14px; flex: none; }
.t-ico-p { width: 14px; height: 17px; flex: none; }
.t-xl-title { height: 32px; background: #217346; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; position: relative; }
.t-xl-title .t-ctl { position: absolute; right: 14px; letter-spacing: 18px; }
.t-xl-tabs { height: 30px; background: #217346; color: #e9f5ee; display: flex; gap: 22px; align-items: center; padding: 0 16px; font-size: 13px; }
.t-xl-tabs span.t-on { background: #fff; color: #217346; padding: 6px 12px; }
.t-xl-ribbon { height: 56px; background: #f3f3f3; border-bottom: 1px solid #d6d6d6; }
.t-xl-fx { height: 28px; display: flex; align-items: center; border-bottom: 1px solid #d6d6d6; font-size: 13px; }
.t-xl-fx .t-ref { width: 80px; border-right: 1px solid #d6d6d6; padding: 0 8px; }
.t-xl-fx .t-f { padding: 0 10px; color: #444; }
.t-xl-grid { position: relative; font-size: 12px; }
.t-xl-grid table { border-collapse: collapse; table-layout: fixed; }
.t-xl-grid th { background: #efefef; color: #444; font-weight: 400; border: 1px solid #d6d6d6; height: 22px; text-align: center; }
.t-xl-grid td { border: 1px solid #e3e3e3; padding: 3px 5px; height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-xl-grid tr.t-hdr td { height: 54px; white-space: normal; vertical-align: top; font-weight: 600; font-size: 11px; line-height: 1.25; background: #e2efda; color: #1f3d1a; }
.t-xl-grid td.t-num { text-align: right; font-variant-numeric: tabular-nums; }
.t-xl-grid td.t-rn, .t-xl-grid th.t-rn { background: #efefef; color: #666; text-align: center; width: 34px; }
.t-xl-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: #f3f3f3; border-top: 1px solid #d6d6d6; display: flex; align-items: center; padding-left: 60px; font-size: 12.5px; }
.t-xl-sheet span { background: #fff; color: #217346; border-bottom: 3px solid #217346; padding: 5px 14px; font-weight: 600; }

.t-end { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96); width: 760px; text-align: center;
  background: var(--t-cream); color: var(--t-navy); border-radius: 20px; padding: 40px 44px 36px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); z-index: 9; }
.t-end.t-in { transform: translate(-50%, -50%); }
.t-end h3 { margin: 0; font: 400 72px/1 var(--display); letter-spacing: .01em; color: var(--t-navy); }
.t-end h3 em { font-style: italic; color: #0b7fa0; }
.t-end .t-url { margin-top: 16px; font: 500 22px var(--mono); }
.t-end p { margin: 14px auto 0; font: 400 19px/1.45 var(--sans); color: #3a4558; max-width: none; }

/* controls under the stage */
.t-controls { max-width: min(1280px, calc((100vh - 200px) * 16 / 9)); margin: 14px auto 0; display: grid; gap: 10px; }
@media (max-width: 700px) { .t-stage, .t-controls { max-width: 100%; } }
.t-progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.t-progress button { height: 8px; border: 0; padding: 0; border-radius: 4px; background: #24324a; cursor: pointer; position: relative; overflow: hidden; }
.t-progress button span { position: absolute; inset: 0 auto 0 0; width: 0; background: #7fd3ea; }
.t-progress button:focus-visible, .t-buttons button:focus-visible { outline: 2px solid #7fd3ea; outline-offset: 2px; }
.t-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t-buttons button { font: 500 14px var(--sans); color: #e8eef6; background: #1b273c; border: 1px solid #31425f; border-radius: 9px; padding: 8px 14px; cursor: pointer; }
.t-buttons button:hover { background: #24334f; }
.t-buttons .t-now { margin-left: 6px; font-size: 14px; color: #c9d4e3; }
.t-buttons .t-hint { margin-left: auto; font-size: 12.5px; color: #7f8ea6; }

/* page around the tour */
.page-guia main { padding-top: 132px; }
.page-guia .wrap { max-width: 1340px; }
.page-guia h1 em { font-style: italic; }
.guia-lead { font-size: 18px; max-width: 70ch !important; }
.guia-cta { margin: 56px auto 0; max-width: 1280px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px; border-radius: 18px; background: var(--graphite, #2e2e2e); border: 1px solid rgba(255, 255, 255, .08); }
.guia-cta p { margin: 0; font: 300 24px/1.3 var(--display); color: var(--cloud, #f5f5f7); max-width: none !important; }
.guia-noscript { margin-top: 24px; }

html[data-theme="light"] .t-progress button { background: #d7dbe2; }
html[data-theme="light"] .t-progress button span { background: var(--cyan); }
html[data-theme="light"] .t-buttons button { background: var(--panel); color: var(--cloud); border-color: var(--line-2); }
html[data-theme="light"] .t-buttons button:hover { background: var(--graphite); }
html[data-theme="light"] .t-buttons .t-now { color: var(--ash); }
html[data-theme="light"] .t-buttons .t-hint { color: var(--fog); }
html[data-theme="light"] :is(.t-progress button, .t-buttons button):focus-visible { outline-color: var(--cyan); }

@media (max-width: 700px) {
  .t-buttons .t-hint { display: none; }
  .page-guia main { padding-top: 112px; }
  .guia-cta p { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-scene, .tour [data-at], .t-zl, .t-cursor, .t-fly { transition: none !important; }
  .t-ripple.t-in { animation: none !important; opacity: 0; }
}
