/* The animated tutorials (tutorials.js), shared by the app and the docs page. */
.tut-stage { position: relative; height: 128px; border-radius: 10px; background: rgba(20, 12, 38, .9); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; padding: 12px; }
.tut-stage b { display: block; height: 7px; border-radius: 4px; background: rgba(220, 210, 255, .35); }

/* By hand: a goal, a milestone appears, tasks slide in, one gets checked. 6s loop. */
.tut-hand-stage > div { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.th-icon { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #b48cff; }
.th-ring { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #ffcf5a; margin-left: 3px; }
.th-task { margin-left: 18px; }
.th-box { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(176, 140, 255, .7); }
.th-box svg { width: 10px; height: 10px; fill: none; stroke: #140b2a; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.th-ms { animation: tut-in 6s infinite; }
.th-task1 { animation: tut-in2 6s infinite; }
.th-task2 { animation: tut-in3 6s infinite; }
.th-task1 .th-box { animation: tut-check 6s infinite; }
.th-task1 .th-box svg { animation: tut-tick 6s infinite; }
@keyframes tut-in  { 0%, 8% { opacity: 0; transform: translateX(-8px); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tut-in2 { 0%, 24% { opacity: 0; transform: translateX(-8px); } 32%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tut-in3 { 0%, 38% { opacity: 0; transform: translateX(-8px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tut-check { 0%, 56% { background: transparent; box-shadow: none; } 62%, 92% { background: #b48cff; box-shadow: 0 0 10px #a47cff; } 100% { background: transparent; } }
@keyframes tut-tick { 0%, 58% { opacity: 0; } 64%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Connector: Claude, Claude Code, ChatGPT in turn; each opens, takes the URL, Omniu connects, and you ask it to set up milestones. 15s loop, 5s per app. */
.tut-agent-stage { height: 190px; padding: 0; }
.ta-win { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; animation: ta-show 15s infinite; }
.ta-w2 { animation-delay: 5s; }
.ta-w3 { animation-delay: 10s; }
.ta-w2 *, .ta-w2 { --d: 5s; }
.ta-w3 *, .ta-w3 { --d: 10s; }
.ta-bar { padding: 6px 10px; font-size: 11px; letter-spacing: .04em; color: #d9ccff; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ta-bar::before { content: '\25CF\00a0\25CF\00a0\25CF'; color: rgba(255, 255, 255, .2); font-size: 7px; margin-right: 8px; vertical-align: 1px; }
.ta-body { flex: 1; display: grid; gap: 8px; align-content: start; padding: 10px; }
.ta-btn { justify-self: start; font-size: 11px; padding: 4px 9px; border-radius: 7px; color: #e2d6ff; border: 1px solid rgba(176, 140, 255, .6); animation: ta-press 15s infinite; animation-delay: var(--d, 0s); }
.ta-term { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ta-term .ta-body { background: rgba(0, 0, 0, .25); }
.ta-line { font: 10px/1.35 ui-monospace, Menlo, Consolas, monospace; color: #b9f0c8; }
.ta-line::before { content: '> '; color: rgba(255, 255, 255, .4); }
.ta-line2 { animation: ta-line2 15s infinite; animation-delay: 5s; }
.ta-field { height: 22px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .18); padding: 0 8px; display: flex; align-items: center; overflow: hidden; animation: ta-field 15s infinite; animation-delay: var(--d, 0s); }
.ta-term .ta-field { border: 0; padding: 0; height: auto; }
.ta-url { font: 11px/1 ui-monospace, Menlo, Consolas, monospace; color: #e9e4ff; white-space: nowrap; overflow: hidden; width: 0; animation: ta-type 15s steps(24) infinite; animation-delay: var(--d, 0s); }
.ta-row { display: flex; align-items: center; gap: 8px; animation: ta-row 15s infinite; animation-delay: var(--d, 0s); }
.tface { width: 20px; height: 20px; fill: none; stroke: #7fd0ff; stroke-width: 1.6; flex: none; }
.tface .f { fill: #7fd0ff; stroke: none; }
.ta-row b { flex: 1; }
.ta-ok { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #b48cff; box-shadow: 0 0 10px #a47cff; }
.ta-ok svg { width: 10px; height: 10px; fill: none; stroke: #140b2a; stroke-width: 3; stroke-linecap: round; }
/* Each window owns the first third of its 12s cycle; the inner beats sit inside that third. */
@keyframes ta-show  { 0% { opacity: 0; } 2%, 31% { opacity: 1; } 33.3%, 100% { opacity: 0; } }
@keyframes ta-press { 0%, 4% { transform: none; background: transparent; } 5.5% { transform: scale(.9); background: rgba(176, 140, 255, .35); } 7%, 100% { transform: none; background: transparent; } }
@keyframes ta-field { 0%, 6% { opacity: 0; } 7.5%, 100% { opacity: 1; } }
@keyframes ta-type  { 0%, 8% { width: 0; } 14%, 100% { width: 24ch; } }
@keyframes ta-line2 { 0%, 15% { opacity: 0; } 16.5%, 100% { opacity: 1; } }
@keyframes ta-row   { 0%, 17% { opacity: 0; transform: translateY(6px); } 19%, 100% { opacity: 1; transform: none; } }
/* Then you ask it, in that app: "set up milestones". */
.ta-ask { justify-self: end; max-width: 90%; padding: 5px 9px; border-radius: 10px; font-size: 11px; color: #dff3ff; background: rgba(10, 14, 34, .95); border: 1px solid rgba(111, 195, 255, .45); opacity: 0; animation: ta-ask 15s infinite; animation-delay: var(--d, 0s); }
.ta-ask span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; animation: ta-ask-type 15s steps(17) infinite; animation-delay: var(--d, 0s); }
@keyframes ta-ask      { 0%, 21% { opacity: 0; transform: translateY(6px); } 22.5%, 100% { opacity: 1; transform: none; } }
@keyframes ta-ask-type { 0%, 23% { max-width: 0; } 29%, 100% { max-width: 12em; } }

/* Talk it out: you write, your future self answers and calls Omniu's tools; a milestone and a task appear. 8s loop. */
.tut-talk-stage { display: grid; gap: 8px; align-content: start; height: 150px; }
.tk-msg { display: grid; gap: 5px; padding: 7px 9px; border-radius: 10px; max-width: 78%; }
.tk-you { justify-self: start; width: 62%; background: rgba(10, 14, 34, .9); border: 1px solid rgba(111, 195, 255, .45); animation: tk-in 8s infinite; }
.tk-self { justify-self: end; display: flex; align-items: center; gap: 7px; width: 74%; background: rgba(22, 12, 40, .9); border: 1px solid rgba(176, 140, 255, .5); animation: tk-in2 8s infinite; }
.tk-self .tface { stroke: #c9b4ff; width: 16px; height: 16px; }
.tk-self .tface .f { fill: #c9b4ff; }
.tk-text { flex: 1; display: grid; gap: 5px; opacity: 0; animation: tk-text 8s infinite; }
.tk-dots { display: flex; gap: 3px; overflow: hidden; flex: none; animation: tk-dots 8s infinite; }
.tk-dots i { width: 4px; height: 4px; border-radius: 50%; background: #c9b4ff; animation: tk-blink 1s infinite; }
.tk-dots i:nth-child(2) { animation-delay: .2s; }
.tk-dots i:nth-child(3) { animation-delay: .4s; }
.tk-tool { display: flex; align-items: center; gap: 7px; }
.tk-tool code { font: 9.5px/1 ui-monospace, Menlo, Consolas, monospace; color: #c9b4ff; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(176, 140, 255, .4); background: rgba(176, 140, 255, .08); }
.tk-tool b { flex: none; }
.tk-task { width: 9px; height: 9px; border-radius: 50%; border: 1.4px solid #b48cff; }
.tk-t1 { animation: tk-t1 8s infinite; }
.tk-t2 { animation: tk-t2 8s infinite; }
@keyframes tk-in    { 0%, 4% { opacity: 0; transform: translateY(6px); } 10%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tk-in2   { 0%, 16% { opacity: 0; transform: translateY(6px); } 22%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tk-dots  { 0%, 34% { opacity: 1; width: 18px; } 35%, 100% { opacity: 0; width: 0; } }
@keyframes tk-text  { 0%, 34% { opacity: 0; } 38%, 100% { opacity: 1; } }
@keyframes tk-blink { 50% { opacity: .25; } }
@keyframes tk-t1    { 0%, 46% { opacity: 0; transform: translateX(-8px); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tk-t2    { 0%, 60% { opacity: 0; transform: translateX(-8px); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .tut-stage * { animation: none !important; } .tut-stage .th-box svg, .tut-stage .ta-row, .tut-stage .ta-field, .tut-stage .ta-line2, .tut-stage .ta-w1, .tut-stage .tk-msg, .tut-stage .tk-tool, .tut-stage .ta-ask { opacity: 1; } .ta-url { width: 24ch; } .ta-ask span { max-width: 12em; } .tk-dots { width: 0; } .tk-text { opacity: 1; } }
