/* =========================================================
   InteligentnyAgent.pl — /start (kreator onboardingu)
   ========================================================= */
.st { background: #fbfaf8; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow-x: hidden; }

/* ---------- animated background ---------- */
.st-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.st-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.st-blob.b1 { width: 460px; height: 460px; left: -120px; top: -100px; background: radial-gradient(circle at 30% 30%, #ffc9bd, #ffe7e0 70%); animation: stDrift1 18s ease-in-out infinite alternate; }
.st-blob.b2 { width: 520px; height: 520px; right: -160px; top: 18%; background: radial-gradient(circle at 60% 40%, #dfe6ff, #f1f3ff 70%); animation: stDrift2 22s ease-in-out infinite alternate; }
.st-blob.b3 { width: 420px; height: 420px; left: 28%; bottom: -200px; background: radial-gradient(circle at 50% 50%, #ffe9c9, #fff6e6 70%); animation: stDrift3 20s ease-in-out infinite alternate; }
.st-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(23, 23, 23, 0.07) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
@keyframes stDrift1 { to { transform: translate(90px, 70px) scale(1.12); } }
@keyframes stDrift2 { to { transform: translate(-80px, 60px) scale(0.92); } }
@keyframes stDrift3 { to { transform: translate(60px, -50px) scale(1.15); } }

/* ---------- top bar ---------- */
.st-top { position: relative; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 18px clamp(16px, 4vw, 40px); }
.st-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--text-strong); }
.st-brand img { border-radius: 9px; }
.st-meter { flex: 1; display: flex; align-items: center; gap: 14px; max-width: 420px; margin: 0 auto; }
.st-meter[hidden] { display: none; }
.st-prog { flex: 1; height: 6px; border-radius: 99px; background: rgba(23, 23, 23, 0.08); overflow: hidden; }
.st-prog span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #ff9a7e); transition: width 0.7s var(--ease); }
.st-count { font-size: 12.5px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); transition: transform 0.25s var(--ease), background 0.2s; }
.st-close:hover { transform: rotate(90deg); background: #fff; }
.st-close img { opacity: 0.6; }

/* ---------- stage ---------- */
.st-main { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 28px) 40px; display: flex; flex-direction: column; justify-content: center; }
.st-step { animation: stIn 0.6s var(--ease) both; }
.st-step.out { animation: stOut 0.25s ease-in both; }
@keyframes stIn { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stOut { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }

/* agent row */
.st-agent { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.st-avatar { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(23, 23, 23, 0.12); display: grid; place-items: center; }
.st-avatar img { width: 30px; height: 30px; object-fit: contain; }
.st-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #2fbf71; border: 2px solid #fff; }
.st-bubble { background: #fff; border: 1px solid var(--line); border-radius: 6px 20px 20px 20px; padding: 16px 20px; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.4; font-weight: 600; letter-spacing: -0.02em; color: var(--text-strong); box-shadow: var(--shadow); min-height: 54px; max-width: 100%; }
.st-bubble b { color: var(--accent); font-weight: 800; }
.st-bubble .st-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -0.12em; animation: stBlink 0.9s steps(2) infinite; }
.st-typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.st-typing i { width: 8px; height: 8px; border-radius: 50%; background: #c9c4bd; animation: stDot 1s ease-in-out infinite; }
.st-typing i:nth-child(2) { animation-delay: 0.15s; }
.st-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes stDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes stBlink { 50% { opacity: 0; } }

/* options appear after the bubble finishes */
.st-body > * { opacity: 0; transform: translateY(14px); }
.st-body.show > * { animation: stRise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes stRise { to { opacity: 1; transform: none; } }

.st-hint { margin: 0 0 14px 62px; font-size: 14px; color: var(--text-muted); }
.st-opts { display: grid; gap: 12px; margin-left: 62px; }
.st-opts.two { grid-template-columns: 1fr 1fr; }
.st-opts.chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.st-opt { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.9); border: 1.5px solid var(--line); color: var(--text-strong); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s, background 0.2s; }
.st-opt:hover { transform: translateY(-3px); border-color: rgba(255, 107, 82, 0.55); box-shadow: 0 14px 30px -14px rgba(255, 107, 82, 0.45); }
.st-opt:focus-visible { outline: 3px solid rgba(255, 107, 82, 0.4); outline-offset: 2px; }
.st-opt-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; transition: background 0.25s; }
.st-opt-ico img { width: 20px; height: 20px; }
.st-opt small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 450; color: var(--text-muted); letter-spacing: 0; }
.st-opt-txt { flex: 1; min-width: 0; }
.st-opt-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ddd8d1; display: grid; place-items: center; transition: all 0.25s var(--ease); }
.st-opt-check img { width: 14px; height: 14px; filter: invert(1); transform: scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.st-opt.on { border-color: var(--accent); background: #fff8f6; box-shadow: 0 14px 30px -16px rgba(255, 107, 82, 0.55); }
.st-opt.on .st-opt-ico { background: var(--accent); }
.st-opt.on .st-opt-ico img { filter: invert(1); }
.st-opt.on .st-opt-check { background: var(--accent); border-color: var(--accent); }
.st-opt.on .st-opt-check img { transform: scale(1); }
.st-opt.chip { justify-content: center; padding: 14px 12px; font-size: 15px; border-radius: 14px; }
.st-opt.chip.on { color: #c2412b; }
.st-opt.pulse { animation: stPick 0.45s var(--ease); }
@keyframes stPick { 40% { transform: scale(0.96); } 100% { transform: scale(1); } }

/* buttons */
.st-actions { display: flex; align-items: center; gap: 16px; margin: 22px 0 0 62px; flex-wrap: wrap; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 99px; border: 0; background: var(--cta); color: #fff; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.2s, background 0.2s; position: relative; overflow: hidden; }
.st-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.5); }
.st-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.st-btn img { width: 18px; height: 18px; filter: invert(1); transition: transform 0.25s var(--ease); }
.st-btn:hover:not(:disabled) img { transform: translateX(4px); }
.st-btn.accent { background: linear-gradient(135deg, #ff6b52, #ff8a5c); box-shadow: 0 14px 30px -12px rgba(255, 107, 82, 0.7); }
.st-btn.accent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); animation: stShine 3.2s ease-in-out infinite; }
@keyframes stShine { 55%, 100% { transform: translateX(120%); } }
.st-back { background: none; border: 0; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.st-back:hover { color: var(--text-strong); }
.st-back img { width: 16px; height: 16px; opacity: 0.6; }

/* chips row on welcome */
.st-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 0 62px; }
.st-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text); }
.st-tag img { width: 15px; height: 15px; opacity: 0.7; }

/* reaction bubble */
.st-react { margin: 16px 0 0 62px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #f1faf4; border: 1px solid #cdeed9; color: #20694a; font-size: 14.5px; font-weight: 550; animation: stRise 0.5s var(--ease) both; }
.st-react img { width: 18px; height: 18px; flex: none; }

/* input */
.st-field { margin-left: 62px; display: block; }
.st-field span { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-muted); margin: 0 0 7px 4px; }
.st-input { width: 100%; padding: 17px 20px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-size: 17px; color: var(--text-strong); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.st-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 107, 82, 0.15); }
.st-input.invalid { border-color: #d64545; animation: stShake 0.4s; }
@keyframes stShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.st-form { display: grid; gap: 14px; }
.st-check { margin-left: 62px; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.st-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.st-check a { text-decoration: underline; }
.st-err { margin: 10px 0 0 62px; min-height: 20px; font-size: 14px; font-weight: 600; color: #c43131; }
.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* mock chat preview */
.st-preview { margin-left: 62px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.st-preview-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.st-preview-head img { width: 26px; height: 26px; object-fit: contain; }
.st-preview-head small { margin-left: auto; font-size: 12px; font-weight: 600; color: #2f8f5b; display: inline-flex; align-items: center; gap: 6px; }
.st-preview-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; }
.st-preview-body { padding: 18px 16px 20px; display: grid; gap: 10px; min-height: 150px; background: var(--card); }
.st-pm { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; animation: stRise 0.45s var(--ease) both; }
.st-pm.ai { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; justify-self: start; }
.st-pm.me { background: var(--cta); color: #fff; border-bottom-right-radius: 5px; justify-self: end; }

/* analyzing */
.st-analyze { text-align: center; padding: 10px 0; }
.st-orb { position: relative; width: 132px; height: 132px; margin: 0 auto 26px; display: grid; place-items: center; }
.st-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 107, 82, 0.35); animation: stRing 2.4s ease-out infinite; }
.st-orb .ring.r2 { animation-delay: 0.8s; }
.st-orb .ring.r3 { animation-delay: 1.6s; }
.st-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.st-orb circle { fill: none; stroke-width: 4; }
.st-orb .track { stroke: rgba(23, 23, 23, 0.07); }
.st-orb .fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.9s var(--ease); }
.st-orb .core { width: 84px; height: 84px; border-radius: 50%; background: #fff; box-shadow: 0 14px 34px rgba(255, 107, 82, 0.3); display: grid; place-items: center; z-index: 2; animation: stBreath 2.2s ease-in-out infinite; }
.st-orb .core img { width: 54px; height: 54px; object-fit: contain; }
@keyframes stRing { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes stBreath { 50% { transform: scale(1.06); } }
.st-analyze h2 { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.03em; margin-bottom: 22px; }
.st-tasks { display: grid; gap: 10px; max-width: 460px; margin: 0 auto; text-align: left; }
.st-task { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); font-size: 15px; font-weight: 550; color: var(--text-muted); transition: all 0.4s var(--ease); }
.st-task i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd8d1; flex: none; display: grid; place-items: center; transition: all 0.3s; }
.st-task i img { width: 12px; height: 12px; filter: invert(1); transform: scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.st-task.run { color: var(--text-strong); border-color: #ffd9cf; background: #fff8f6; }
.st-task.run i { border-color: #ffd9cf; border-top-color: var(--accent); animation: stSpin 0.7s linear infinite; }
.st-task.done { color: var(--text-strong); }
.st-task.done i { background: #2f8f5b; border-color: #2f8f5b; animation: none; }
.st-task.done i img { transform: scale(1); }
@keyframes stSpin { to { transform: rotate(360deg); } }

/* plan card */
.st-plan { margin-left: 62px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 22px 22px 8px; position: relative; overflow: hidden; }
.st-plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), #ffb08a, #7c9cff); }
.st-plan-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.st-plan-row:last-child { border-bottom: 0; }
.st-plan-row dt { color: var(--text-muted); font-weight: 550; }
.st-plan-row dd { margin: 0; color: var(--text-strong); font-weight: 650; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; align-content: flex-start; }
.st-pill { display: inline-block; padding: 4px 11px; border-radius: 99px; background: var(--accent-soft); color: #b83f27; font-size: 13.5px; font-weight: 650; }

/* path choice */
.st-paths { display: grid; gap: 16px; margin-left: 62px; }
.st-path { position: relative; text-align: left; width: 100%; padding: 22px 22px 20px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s; color: var(--text-strong); }
.st-path:hover { transform: translateY(-4px); }
.st-path h3 { font-size: 20px; letter-spacing: -0.025em; margin-bottom: 6px; padding-right: 90px; }
.st-path p { font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.st-path ul { margin: 14px 0 0; display: grid; gap: 8px; }
.st-path li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 550; color: var(--text); line-height: 1.4; }
.st-path li img { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.st-path .meta { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.st-path .meta span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: var(--subtle); font-size: 13px; font-weight: 650; color: var(--text); }
.st-path .meta img { width: 14px; height: 14px; opacity: 0.75; }
.st-path .flag { position: absolute; top: 18px; right: 18px; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 750; letter-spacing: 0.02em; }
.st-path.main { border-color: var(--accent); background: linear-gradient(180deg, #fffaf8, #fff); box-shadow: 0 24px 50px -22px rgba(255, 107, 82, 0.6); }
.st-path.main::after { content: ""; position: absolute; inset: -1.5px; border-radius: 23px; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), #ff6b52, #ffd0a8, #7c9cff, #ff6b52); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: stSpinBorder 5s linear infinite; pointer-events: none; opacity: 0.9; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes stSpinBorder { to { --ang: 360deg; } }
.st-path.main .flag { background: var(--accent); color: #fff; }
.st-path.alt .flag { background: var(--subtle); color: var(--text-muted); }
.st-path.alt { background: rgba(255, 255, 255, 0.75); }
.st-path.main li img { filter: invert(38%) sepia(92%) saturate(1900%) hue-rotate(344deg); }

/* waitlist note */
.st-note { margin-left: 62px; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15.5px; line-height: 1.55; color: var(--text); }
.st-note b { color: var(--text-strong); }

/* done */
.st-done { text-align: center; position: relative; padding-top: 6px; }
.st-tick { width: 104px; height: 104px; margin: 0 auto 22px; position: relative; }
.st-tick svg { width: 100%; height: 100%; overflow: visible; }
.st-tick .c { fill: #eaf7ef; stroke: #2f8f5b; stroke-width: 3; stroke-dasharray: 302; stroke-dashoffset: 302; animation: stDraw 0.8s 0.1s var(--ease) forwards; }
.st-tick .t { fill: none; stroke: #2f8f5b; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: stDraw 0.5s 0.7s var(--ease) forwards; }
@keyframes stDraw { to { stroke-dashoffset: 0; } }
.st-done h2 { font-size: clamp(26px, 4.2vw, 38px); letter-spacing: -0.035em; margin-bottom: 12px; }
.st-done > p { max-width: 520px; margin: 0 auto 28px; color: var(--text-muted); font-size: 17px; line-height: 1.55; }
.st-line { max-width: 520px; margin: 0 auto 28px; display: grid; gap: 0; text-align: left; }
.st-li { display: flex; gap: 16px; position: relative; padding-bottom: 22px; animation: stRise 0.6s var(--ease) both; }
.st-li:nth-child(1) { animation-delay: 0.9s; } .st-li:nth-child(2) { animation-delay: 1.15s; } .st-li:nth-child(3) { animation-delay: 1.4s; }
.st-li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: linear-gradient(var(--accent), #eadfd9); opacity: 0.5; }
.st-li .n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 750; background: #fff; border: 2px solid #e2ddd6; color: var(--text-muted); }
.st-li.ok .n { background: #2f8f5b; border-color: #2f8f5b; color: #fff; }
.st-li.now .n { border-color: var(--accent); color: var(--accent); animation: stPing 1.8s ease-out infinite; }
@keyframes stPing { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 82, 0.45); } 100% { box-shadow: 0 0 0 12px rgba(255, 107, 82, 0); } }
.st-li b { display: block; font-size: 16px; color: var(--text-strong); }
.st-li small { font-size: 14px; color: var(--text-muted); }
.st-confetti { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; }
.st-confetti i { position: absolute; top: 40px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: stFall 2.4s ease-out forwards; }
@keyframes stFall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), 340px) rotate(var(--rot)); } }

.st-foot { position: relative; z-index: 2; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 14px 16px 22px; font-size: 13px; color: var(--text-muted); }
.st-foot a { text-decoration: underline; }
.st-noscript { margin: 40px 0; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }

@media (max-width: 640px) {
  .st-top { gap: 10px; padding: 14px 16px; }
  .st-brand span { display: none; }
  .st-opts, .st-hint, .st-actions, .st-tags, .st-react, .st-field, .st-check, .st-err, .st-preview, .st-plan, .st-paths, .st-note { margin-left: 0; }
  .st-agent { gap: 10px; margin-bottom: 20px; }
  .st-avatar { width: 40px; height: 40px; }
  .st-avatar img { width: 25px; height: 25px; }
  .st-opts.two { grid-template-columns: 1fr; }
  .st-plan-row { grid-template-columns: 1fr; gap: 4px; }
  .st-path h3 { padding-right: 0; margin-top: 22px; }
  .st-btn { width: 100%; }
  .st-actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-blob, .st-btn.accent::after, .st-path.main::after, .st-li.now .n, .st-orb .ring, .st-orb .core { animation: none !important; }
  .st-step, .st-body.show > *, .st-li, .st-react { animation-duration: 0.01s !important; animation-delay: 0s !important; }
  .st-tick .c, .st-tick .t { animation-duration: 0.01s !important; animation-delay: 0s !important; }
  .st-confetti { display: none; }
}

.st-tip { margin: 22px auto 0; max-width: 460px; min-height: 44px; font-size: 14px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.st-tip.in { animation: stRise 0.5s var(--ease) both; }
.st-analyze .st-note { text-align: left; }

/* ---------- build screen: live preview that fills with real data ---------- */
.st-main { transition: max-width 0.5s var(--ease); }
.st-main.wide { max-width: 860px; }
.st-build { text-align: center; }
.st-build .st-orb { margin-bottom: 8px; width: 112px; height: 112px; }
.st-build .st-orb .core { width: 70px; height: 70px; }
.st-build .st-orb .core img { width: 44px; height: 44px; }
.st-build .st-orb.is-done .core { animation: stDonePop 0.6s var(--ease); box-shadow: 0 14px 34px rgba(47, 143, 91, 0.4); }
.st-build .st-orb.is-done .fill { stroke: #2f8f5b; }
.st-build .st-orb.is-done .ring { border-color: rgba(47, 143, 91, 0.4); }
@keyframes stDonePop { 40% { transform: scale(1.14); } }
.st-pct { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.st-build h2 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 8px; }
.st-eta { max-width: 520px; margin: 0 auto 22px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.st-eta b { color: var(--text-strong); font-variant-numeric: tabular-nums; }

.pv { margin: 0 auto; max-width: 640px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.pv-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--subtle); border-bottom: 1px solid var(--line); }
.pv-bar .dots { display: flex; gap: 6px; }
.pv-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #d8d3cc; }
.pv-url { flex: 1; max-width: 300px; margin: 0 auto; padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-body { position: relative; padding: 18px 18px 22px; min-height: 250px; }
.pv-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 40px; }
.pv-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.pv-logo.mono { display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), #ff9a7e); border: 0; }
.pv-name { height: 16px; width: 150px; border-radius: 8px; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; color: var(--text-strong); height: auto; }
.sk { position: relative; overflow: hidden; background: #efece7; border-radius: 10px; display: block; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%); transform: translateX(-100%); animation: stSkel 1.5s ease-in-out infinite; }
@keyframes stSkel { to { transform: translateX(100%); } }
.pv-brand .sk.pv-logo { border: 0; }
.pv-brand .sk.pv-name { width: 150px; height: 16px; }
.pv-logo.in, .pv-name.in { animation: stPvIn 0.6s var(--ease) both; }
@keyframes stPvIn { from { opacity: 0; transform: translateY(8px) scale(0.92); filter: blur(4px); } }
.pv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pv-tile { display: grid; gap: 7px; align-content: start; }
.pv-img { aspect-ratio: 1; border-radius: 14px; background: #efece7; overflow: hidden; display: grid; place-items: center; position: relative; }
.pv-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pv-tile .sk.pv-img::after, .pv-tile .pv-img.sk::after { content: ""; }
.pv-line { height: 10px; border-radius: 6px; }
.pv-line.s { width: 55%; }
.pv-t { font-size: 12.5px; font-weight: 600; color: var(--text-strong); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-p { font-size: 13px; font-weight: 800; color: var(--text-strong); }
.pv-tile.in > * { animation: stPvIn 0.6s var(--ease) both; }
.pv-tile.in > :nth-child(2) { animation-delay: 0.08s; } .pv-tile.in > :nth-child(3) { animation-delay: 0.14s; }
.pv-found { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pv-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: #eaf7ef; color: #20694a; font-size: 12.5px; font-weight: 700; animation: stPvIn 0.55s var(--ease) both; animation-delay: calc(var(--n, 0) * 0.05s); }
.pv-chip img { width: 13px; height: 13px; }
.pv-chat { position: absolute; right: 16px; bottom: 14px; max-width: 78%; display: flex; gap: 8px; align-items: flex-end; opacity: 0.0; transform: translateY(10px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.pv-body:has(.pv-found:empty) .pv-chat { opacity: 0; }
.pv-chat-av { width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -6px rgba(0, 0, 0, 0.3); display: grid; place-items: center; flex: none; }
.pv-chat-av img { width: 19px; height: 19px; object-fit: contain; }
.pv-chat-b { padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: var(--cta); color: #fff; font-size: 13px; line-height: 1.4; }
.pv-chat-b .st-typing i { background: #8d8883; }
.pv-body:has(.pv-chip) .pv-chat { opacity: 1; transform: none; }

.st-stepper { display: flex; justify-content: center; gap: 8px; margin: 22px 0 14px; }
.st-stepper i { width: 34px; height: 5px; border-radius: 99px; background: rgba(23, 23, 23, 0.1); transition: background 0.4s, transform 0.4s var(--ease); position: relative; overflow: hidden; }
.st-stepper i.done { background: #2f8f5b; }
.st-stepper i.run { background: rgba(255, 107, 82, 0.25); }
.st-stepper i.run::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: stLoad 1.6s ease-in-out infinite; }
@keyframes stLoad { to { transform: translateX(100%); } }
.st-now { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 15.5px; font-weight: 650; color: var(--text-strong); min-height: 24px; }
.st-now.ok { color: #20694a; }
.st-now img { width: 18px; height: 18px; filter: invert(38%) sepia(60%) saturate(700%) hue-rotate(95deg); }
.st-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ffd9cf; border-top-color: var(--accent); animation: stSpin 0.7s linear infinite; }
.st-build .st-tip { margin-top: 14px; }
@media (max-width: 640px) {
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
  .pv-body { min-height: 0; padding-bottom: 70px; }
  .pv-chat { left: 14px; right: 14px; max-width: none; }
}
.pv-name.in, .pv-brand .pv-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; max-width: 100%; }
.st-build .st-eta { margin-bottom: 18px; }

/* ---------- "the agent is learning" animation ---------- */
.st-build .st-orb.st-learn { width: 124px; height: 124px; margin: 40px auto 6px; overflow: visible; }
.st-flyzone { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; pointer-events: none; }
.st-fly { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 22px -12px rgba(23, 23, 23, 0.35); font-size: 12px; font-weight: 650; color: var(--text-strong); white-space: nowrap; opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.9); animation: stFly 4.2s cubic-bezier(0.55, 0, 0.25, 1) var(--d) infinite; }
.st-fly img { opacity: 0.75; }
@keyframes stFly {
  0% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.9); }
  12% { opacity: 1; }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  76% { opacity: 0; transform: translate(-50%, -50%) scale(0.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.15); }
}
.st-learn .core { animation: stLearnPulse 1.3s ease-in-out infinite; }
@keyframes stLearnPulse { 0%, 100% { transform: scale(1); box-shadow: 0 14px 34px rgba(255, 107, 82, 0.3); } 50% { transform: scale(1.07); box-shadow: 0 14px 44px rgba(255, 107, 82, 0.55); } }
.st-spark { position: absolute; z-index: 4; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; animation: stSpark 2.4s ease-out infinite; }
.st-spark.s1 { top: 6px; right: 14px; } .st-spark.s2 { bottom: 10px; left: 8px; animation-delay: 0.8s; background: #7c9cff; } .st-spark.s3 { top: 40px; left: -6px; animation-delay: 1.6s; background: #2fbf71; }
@keyframes stSpark { 0% { opacity: 0; transform: scale(0); } 25% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(0) translateY(-14px); } }
.st-learn.is-done .st-flyzone { display: none; }
@media (max-width: 640px) { .st-fly { font-size: 11px; padding: 4px 9px 4px 7px; } .st-build .st-orb.st-learn { margin-top: 30px; } }
@media (prefers-reduced-motion: reduce) { .st-fly, .st-spark, .st-learn .core { animation: none !important; } .st-fly { display: none; } }
.pv-brand .pv-name.in { width: auto; flex: 1 1 auto; }

.st-learn .core { position: relative; z-index: 3; }
.st-learn svg { z-index: 0; }
