/* IndusTrack product tour — full-screen slides */
:root {
  --teal-900: #071d4a; --teal-800: #0a2a6b; --teal-600: #1d5fd1; --teal-300: #7dd3fc;
  --paper: #f4f7fc; --paper-2: #e6edf8; --ink: #0f1b33; --ink-2: #4a5a78; --line: #d5dfef;
  --go: #16a34a; --wait: #f59e0b; --stop: #dc2626; --out: #2563eb;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 60px; --bar: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); overflow: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.06; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--wait); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* top + bottom bars */
.t-top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 0 clamp(12px, 3vw, 32px);
  background: rgba(245, 247, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.t-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 18px/1 var(--display); margin-right: auto; min-width: 0; }
.t-logo img { border-radius: 8px; }
.t-logo em { font: 500 14px var(--body); color: var(--ink-2); font-style: normal; white-space: nowrap; }
.t-top-actions { display: flex; gap: 8px; align-items: center; }
.t-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border-radius: 11px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; background: #fff; color: var(--ink); white-space: nowrap; }
.t-btn.ghost { background: transparent; border-color: var(--line); }
.t-btn.ghost:hover { background: #fff; }
.t-btn.go { background: var(--go); color: #fff; }
.t-btn.go:hover { background: #12863d; }
.t-btn.line { border-color: currentColor; background: transparent; color: var(--teal-800); }
.t-btn.lg { min-height: 52px; padding: 14px 24px; font-size: 17px; }
.t-btn.sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.t-btn[aria-pressed="true"] { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }

.t-bar { position: fixed; inset: auto 0 0 0; height: var(--bar); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 0 clamp(10px, 3vw, 32px);
  background: rgba(245, 247, 244, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.t-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); flex-shrink: 0; }
.t-nav:hover { border-color: var(--teal-600); }
.t-nav:disabled { opacity: .35; cursor: default; }
.t-progress { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.t-dots { display: flex; gap: 5px; }
.t-dots button { flex: 1; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line); cursor: pointer; min-width: 6px; }
.t-dots button.done { background: #a3bde6; }
.t-dots button[aria-selected="true"] { background: var(--teal-600); }
.t-timer { height: 2px; background: transparent; border-radius: 2px; overflow: hidden; }
.t-timer i { display: block; height: 100%; width: 0; background: var(--go); }
.t-count { font: 600 14px var(--body); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.t-chapters { position: fixed; top: var(--top); right: clamp(12px, 3vw, 32px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15,27,51, .18); padding: 8px; max-height: calc(100vh - var(--top) - var(--bar) - 20px); overflow: auto; width: min(300px, calc(100vw - 24px)); }
.t-chapters ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.t-chapters button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 9px; font: 500 15px var(--body); color: var(--ink); cursor: pointer; }
.t-chapters button:hover { background: var(--paper); }
.t-chapters button.cur { background: #e3f5ef; color: var(--teal-800); font-weight: 700; }
.t-chapters button span { color: var(--ink-2); width: 22px; font-variant-numeric: tabular-nums; }

/* deck */
.t-deck { position: fixed; inset: var(--top) 0 var(--bar) 0; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); align-items: center;
  padding: clamp(18px, 3.5vw, 56px) clamp(16px, 5vw, 80px); overflow: auto; visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .55s; transform: translateX(40px); }
.slide.prev-side { transform: translateX(-40px); }
.slide.active { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.slide.dark { background: #050f29; color: #edf3fd; }
.slide.dark p, .slide.dark .t-notes li { color: #bccbe6; }
.slide.dark .t-kicker { color: var(--teal-300); }
.slide.dark a { color: var(--teal-300); }
.slide:not(:has(.t-media)) { grid-template-columns: 1fr; justify-items: center; }
.t-copy { max-width: 560px; }
.t-copy.wide { max-width: 1080px; width: 100%; }
.t-copy.center { width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.t-kicker { font: 600 15px var(--body); color: var(--teal-600); margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.step { background: var(--teal-800); color: #fff; border-radius: 99px; padding: 3px 11px; font-size: 13px; }
.slide h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; }
.slide h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.slide p { color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.t-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 18px 0 26px !important; }
.t-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.t-copy.center .t-cta { justify-content: center; }
.t-hint { font-size: 14px; color: var(--ink-2); }
.muted { opacity: .8; }

/* entrance choreography for the active slide */
.slide .t-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.slide.active .t-copy > * { opacity: 1; transform: none; }
.slide.active .t-copy > *:nth-child(2) { transition-delay: .08s; } .slide.active .t-copy > *:nth-child(3) { transition-delay: .16s; }
.slide.active .t-copy > *:nth-child(4) { transition-delay: .24s; } .slide.active .t-copy > *:nth-child(n+5) { transition-delay: .32s; }
.slide .t-media { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .6s ease .15s, transform .7s cubic-bezier(.2, .8, .2, 1) .15s; }
.slide.active .t-media { opacity: 1; transform: none; }

/* numbered notes + pins */
.t-notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.t-notes li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 16px; opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.slide.active .t-notes li { opacity: 1; transform: none; transition-delay: var(--d); }
.t-notes li span { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--wait); color: #1c1300; font: 800 13px/24px var(--body); text-align: center; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--wait); color: #1c1300;
  font: 800 14px/28px var(--body); text-align: center; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0,0,0,.25); transform: scale(0); z-index: 2; cursor: help; }
.slide.active .pin { animation: pin-in .45s cubic-bezier(.3, 1.6, .5, 1) forwards, pin-pulse 2.4s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + .6s); }
@keyframes pin-in { to { transform: scale(1); } }
@keyframes pin-pulse { 0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 0 rgba(245, 158, 11, .55); transform: scale(1); } 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 12px rgba(245, 158, 11, 0); transform: scale(1); } }
.t-two-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.t-two-notes h3 { font-size: 1.1rem; margin-top: 8px; }
.t-two-notes .ok { color: var(--go); } .t-two-notes .no { color: var(--stop); }

/* frames */
.t-media { display: flex; justify-content: center; align-items: center; min-width: 0; }
.t-media.pair { gap: clamp(14px, 2.5vw, 32px); }
.t-phone { margin: 0; width: min(clamp(190px, 21vw, 290px), calc((100vh - var(--top) - var(--bar) - 70px) * .43)); min-width: 170px; flex-shrink: 0; }
.t-phone-frame { position: relative; border-radius: 36px; padding: 10px; background: #0b1324; box-shadow: 0 24px 60px rgba(15,27,51, .28); }
.t-screen { position: relative; }
.t-phone-frame img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 390 / 844; background: #fff; }
.t-web { margin: 0; width: 100%; max-width: 860px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(15,27,51, .2); }
.slide.dark .t-web { border-color: #173a7a; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.t-web-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #e4ebe8; }
.slide.dark .t-web-bar { background: #10224f; }
.t-web-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3cfcb; }
.t-web-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-2); background: #fff; border-radius: 7px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.slide.dark .t-web-bar span { background: #0b1c45; color: #93a8cf; }
.t-web-view { position: relative; }
.t-paper { margin: 0; max-width: 400px; flex: 1 1 260px; }
.t-paper img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(15,27,51,.15); }
.t-paper figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* hero stack */
.hero-media { perspective: 1200px; }
.hero-stack { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 10; }
.hs { position: absolute; width: 78%; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); border: 5px solid #0b1324; }
.hs-1 { left: 0; top: 0; }
.hs-2 { left: 11%; top: 14%; }
.hs-3 { left: 22%; top: 28%; }
.slide.active .hs { animation: deal .8s cubic-bezier(.2, .8, .2, 1) both; }
.slide.active .hs-2 { animation-delay: .25s; } .slide.active .hs-3 { animation-delay: .5s; }
@keyframes deal { from { opacity: 0; transform: translate(40px, 30px) rotate(3deg); } to { opacity: 1; transform: none; } }
.s-hero { background: radial-gradient(900px 500px at 85% 20%, rgba(59,130,246,.18), transparent 60%), var(--paper); }

/* cycling screenshots */
.cycle { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 5px solid #1a2540; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.cycle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.cycle img.on { opacity: 1; }
.t-states { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 10px; }
.t-states li { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); color: #dbeae7; }
.t-states b { display: inline-block; min-width: 68px; }
.st-wait { border-left: 6px solid var(--wait); } .st-in { border-left: 6px solid var(--go); } .st-no { border-left: 6px solid var(--stop); }
.t-states li.lit { background: rgba(255,255,255,.14); }

/* content blocks */
.t-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.t-cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.t-card b { font: 700 1.15rem/1.25 var(--display); display: block; margin-bottom: 6px; }
.t-card p { margin: 0; font-size: 15.5px; }
.t-answer { font-size: 1.1rem; color: var(--ink) !important; }
.t-flow { list-style: none; padding: 0; margin: 30px 0 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.t-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 3px; background: linear-gradient(90deg, var(--teal-600) var(--fill, 0%), var(--line) var(--fill, 0%)); transition: --fill 1s; }
.slide.active .t-flow::before { animation: fill 2.4s ease .4s forwards; }
@property --fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes fill { to { --fill: 100%; } }
.t-flow li { text-align: center; position: relative; opacity: 0; transform: translateY(10px); }
.slide.active .t-flow li { animation: rise .5s ease forwards; }
.slide.active .t-flow li:nth-child(2) { animation-delay: .5s; } .slide.active .t-flow li:nth-child(3) { animation-delay: 1s; }
.slide.active .t-flow li:nth-child(4) { animation-delay: 1.5s; } .slide.active .t-flow li:nth-child(5) { animation-delay: 2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.t-flow span { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--teal-800); color: #fff; font: 800 22px var(--display); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper); }
.t-flow li.go span { background: var(--go); }
.t-flow b { display: block; font: 700 1.2rem var(--display); }
.t-flow small { color: var(--ink-2); font-size: 14.5px; }
.t-ticks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.t-ticks li { padding-left: 28px; position: relative; color: inherit; }
.t-ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 7px; border-left: 3px solid var(--go); border-bottom: 3px solid var(--go); transform: rotate(-45deg); }
.t-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.t-ways div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.t-ways b { display: block; font-size: 15px; } .t-ways small { color: var(--ink-2); }
.t-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.t-roles article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.t-roles b { font: 700 1.1rem var(--display); }
.t-roles p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; }
.chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.c-ad { background: var(--teal-600); } .c-mb { background: #2563eb; } .c-dh { background: #7c3aed; } .c-sg { background: #b45309; } .c-gd { background: #15803d; } .c-hc { background: var(--teal-800); }
.t-setup { list-style: none; padding: 0; margin: 24px 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.t-setup li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.t-setup li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-800); color: #fff; font: 800 16px var(--display); margin-bottom: 12px; }
.t-setup b { display: block; font: 700 1.1rem var(--display); margin-bottom: 6px; } .t-setup span { color: var(--ink-2); font-size: 15px; }
.s-end { background: radial-gradient(800px 420px at 50% 0%, rgba(22,163,74,.14), transparent 70%), var(--paper); }
.t-sharebox { margin: 20px 0 16px; width: min(560px, 100%); text-align: left; }
.t-sharebox label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.t-sharebox div { display: flex; gap: 8px; margin-top: 6px; }
.t-sharebox input { flex: 1; min-width: 0; font: 500 15px var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.t-toast { position: fixed; left: 50%; bottom: calc(var(--bar) + 16px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 40; font-weight: 600; }

/* responsive */
@media (max-width: 980px) {
  .slide { grid-template-columns: 1fr; align-content: start; gap: 22px; }
  .t-copy { max-width: 720px; }
  .t-cards, .t-cards.six, .t-roles { grid-template-columns: 1fr 1fr; }
  .t-setup { grid-template-columns: 1fr 1fr; }
  .t-web { max-width: 100%; }
  .hero-stack { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 620px) {
  :root { --top: 54px; --bar: 58px; }
  body { font-size: 16px; }
  .hide-sm, .t-logo em, #shareBtn { display: none; }
  .t-top-actions .t-btn { padding: 8px 12px; }
  .t-cards, .t-cards.six, .t-roles, .t-setup, .t-two-notes, .t-ways { grid-template-columns: 1fr; }
  .t-flow { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .t-flow::before { display: none; }
  .t-flow li { display: grid; grid-template-columns: 48px 1fr; text-align: left; column-gap: 12px; }
  .t-flow span { width: 44px; height: 44px; margin: 0; grid-row: span 2; font-size: 18px; }
  .t-media.pair { flex-direction: column; }
  .t-phone { width: min(260px, 72vw); }
  .t-dots button { min-width: 4px; }
  .t-count { display: none; }
  .t-cta { width: 100%; }
  .t-cta .t-btn { flex: 1 1 100%; }
  .t-sharebox div { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.active, .slide .t-copy > *, .slide .t-media, .t-notes li, .cycle img { transition: none !important; }
  .slide.active .pin, .slide.active .hs, .slide.active .t-flow li, .slide.active .t-flow::before { animation: none !important; }
  .pin { transform: none; } .t-flow li { opacity: 1; transform: none; } .t-flow::before { --fill: 100%; }
}
@media print {
  body { overflow: visible; } .t-top, .t-bar, .t-chapters { display: none; }
  .t-deck { position: static; } .slide { position: relative; visibility: visible; opacity: 1; transform: none; page-break-after: always; min-height: 100vh; }
  .slide .t-copy > *, .slide .t-media, .t-notes li { opacity: 1; transform: none; } .pin { transform: none; }
}
