/* =============================================================
   DokPath — animated product demo (phone)
   Everything is scoped under .dpd so it cannot leak into the page.
   ============================================================= */
.dpd { --t: #0d9488; }
.dpd-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3rem; align-items: center; }
.dpd-grid--single { display: flex; justify-content: center; }
@media (max-width: 860px) { .dpd-grid { grid-template-columns: 1fr; justify-items: center; gap: 2rem; } .dpd-side { width: 100%; max-width: 30rem; } }

.dpd .ph { width: 300px; height: 566px; border-radius: 38px; background: #0b1220; padding: 8px; position: relative; flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 30px 60px -20px rgba(15,23,42,.45); }
.dpd .sc { position: relative; width: 284px; height: 550px; border-radius: 30px; overflow: hidden; background: #f8fafc; color: #1e293b; font-family: 'Inter', system-ui, sans-serif; display: flex; flex-direction: column; text-align: left; }
.dpd .top { height: 46px; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #334155; flex-shrink: 0; }
.dpd .top svg { width: 20px; height: 20px; }
.dpd .top b { font-size: 11px; font-weight: 500; border: 1px solid #e2e8f0; border-radius: 8px; padding: 5px 9px; color: #334155; }
.dpd .bd { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.dpd .nav { height: 54px; background: #0b1220; display: flex; align-items: center; justify-content: space-around; color: #94a3b8; flex-shrink: 0; position: relative; }
.dpd .nav svg { width: 20px; height: 20px; }
.dpd .nav .c { width: 46px; height: 46px; border-radius: 50%; background: var(--t); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: -22px; box-shadow: 0 0 0 4px #0b1220; }
.dpd .fg { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(15,23,42,.22); border: 2px solid rgba(15,23,42,.55); left: 150px; top: 300px; opacity: 0; transition: left .6s ease, top .6s ease, opacity .25s, transform .12s; z-index: 20; pointer-events: none; }
.dpd .fg.on { opacity: 1; } .dpd .fg.pr { transform: scale(.7); }

.dpd .chat { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8px; gap: 6px; background: #f8fafc; }
.dpd .ch { background: #0f172a; border-radius: 14px; padding: 9px 11px; display: flex; align-items: center; gap: 9px; color: #fff; flex-shrink: 0; }
.dpd .bot { width: 28px; height: 28px; border-radius: 8px; background: var(--t); display: flex; align-items: center; justify-content: center; }
.dpd .bot svg { width: 16px; height: 16px; }
.dpd .k { font-size: 11px; letter-spacing: .14em; color: #5eead4; font-weight: 500; } .dpd .ok { font-size: 11px; color: #34d399; }
.dpd .ms { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; padding: 2px; }
.dpd .ub { align-self: flex-end; max-width: 88%; background: var(--t); color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 11px; font-size: 12px; line-height: 1.4; font-weight: 500; animation: dpd-pop .3s ease; }
.dpd .ab { background: #fff; border: 1px solid #e2e8f0; border-left: 3px solid var(--t); border-radius: 12px; padding: 10px 11px; font-size: 12px; line-height: 1.5; color: #334155; }
.dpd .ab ul { margin: 6px 0 0; padding-left: 15px; list-style: disc; } .dpd .ab li { margin-bottom: 4px; } .dpd .ab b { font-weight: 600; color: #0f172a; }
.dpd .w { opacity: 0; transition: opacity .15s; } .dpd .w.s { opacity: 1; }
.dpd .src { display: flex; align-items: center; gap: 8px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 7px 9px; margin-top: 8px; font-size: 11px; color: #065f46; opacity: 0; transition: opacity .4s; }
.dpd .src.s { opacity: 1; } .dpd .src svg { width: 17px; height: 17px; flex-shrink: 0; } .dpd .src span { flex: 1; font-weight: 500; line-height: 1.3; } .dpd .src u { text-decoration: none; font-weight: 500; color: #0f766e; }
.dpd .src.pulse { animation: dpd-pl 1s ease infinite; }
@keyframes dpd-pl { 50% { box-shadow: 0 0 0 4px rgba(13,148,136,.25); } }
@keyframes dpd-pop { from { opacity: 0; transform: translateY(8px); } }
.dpd .dots { display: flex; gap: 4px; padding: 6px 4px; }
.dpd .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--t); animation: dpd-db 1s infinite; } .dpd .dots i:nth-child(2) { animation-delay: .15s; } .dpd .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dpd-db { 0%,80%,100% { opacity: .25; transform: scale(.7); } 40% { opacity: 1; transform: scale(1); } }
.dpd .cin { display: flex; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.dpd .cb { width: 36px; height: 36px; border-radius: 11px; background: #fff; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; color: #334155; flex-shrink: 0; }
.dpd .cb svg { width: 17px; height: 17px; }
.dpd .cf { flex: 1; min-height: 36px; background: #fff; border: 1px solid #cbd5e1; border-radius: 11px; padding: 6px 6px 6px 10px; font-size: 12px; line-height: 1.35; display: flex; align-items: center; gap: 6px; color: #1e293b; }
.dpd .cf .t { flex: 1; } .dpd .cf .t.ph2 { color: #94a3b8; }
.dpd .sd { width: 26px; height: 26px; border-radius: 8px; background: #5eead4; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .dpd .sd svg { width: 15px; height: 15px; } .dpd .sd.on { background: var(--t); }

.dpd .pdf { position: absolute; inset: 0; background: #f1f5f9; transform: translateY(100%); transition: transform .5s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; z-index: 5; }
.dpd .pdf.on { transform: none; }
.dpd .ph2b { background: #0f172a; color: #fff; padding: 10px 12px; font-size: 11px; display: flex; justify-content: space-between; align-items: center; gap: 8px; } .dpd .ph2b svg { width: 15px; height: 15px; flex-shrink: 0; }
.dpd .pg { margin: 10px; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.15); padding: 14px 12px; flex: 1; position: relative; overflow: hidden; }
.dpd .ln { height: 6px; border-radius: 3px; background: #e2e8f0; margin-bottom: 9px; }
.dpd .hd { font-size: 11px; font-weight: 600; color: #0f172a; margin: 10px 0 8px; }
.dpd .hl { position: relative; font-size: 12px; line-height: 1.45; color: #0f172a; padding: 4px 6px; margin: 0 -6px 10px; }
.dpd .hl:before { content: ""; position: absolute; inset: 0; background: #fde047; opacity: .55; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1s ease; }
.dpd .hl.on:before { transform: none; } .dpd .hl span { position: relative; } .dpd .hl b { font-weight: 600; }

.dpd .cam { position: absolute; inset: 0; background: #0f172a; display: flex; align-items: center; justify-content: center; transition: opacity .4s; }
.dpd .lab { width: 150px; background: #e2e8f0; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #0f172a; font-size: 11px; text-align: center; line-height: 1.35; font-weight: 500; }
.dpd .vf { position: absolute; width: 190px; height: 190px; }
.dpd .vf i { position: absolute; width: 26px; height: 26px; border: 3px solid #5eead4; }
.dpd .vf i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; } .dpd .vf i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.dpd .vf i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; } .dpd .vf i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.dpd .vf s { position: absolute; left: 6px; right: 6px; height: 2px; background: #5eead4; top: 8px; box-shadow: 0 0 8px #5eead4; animation: dpd-scan 1.3s ease-in-out infinite alternate; }
@keyframes dpd-scan { to { top: 178px; } }
.dpd .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: 12px; }
.dpd .pass { position: absolute; inset: 0; padding: 12px; background: #f8fafc; transform: translateY(100%); transition: transform .55s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 8px; }
.dpd .pass.on { transform: none; }
.dpd .pt { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; font-weight: 600; color: #334155; }
.dpd .pt i { width: 26px; height: 26px; border-radius: 8px; background: var(--t); color: #fff; display: flex; align-items: center; justify-content: center; } .dpd .pt svg { width: 15px; height: 15px; }
.dpd .card { background: #fff; border: 1.5px solid #fca5a5; border-radius: 16px; padding: 12px; transition: border-color .4s; } .dpd .card.ok { border-color: #5eead4; }
.dpd .bn { border-radius: 10px; padding: 7px 9px; font-size: 11px; font-weight: 600; letter-spacing: .05em; background: #fee2e2; color: #b91c1c; display: flex; align-items: center; gap: 6px; transition: all .4s; } .dpd .bn svg { width: 14px; height: 14px; flex-shrink: 0; }
.dpd .card.ok .bn { background: #ccfbf1; color: #0f766e; }
.dpd .nm { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #0f172a; gap: 6px; }
.dpd .chip { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #d1fae5; color: #047857; font-weight: 600; flex-shrink: 0; }
.dpd .mt { font-size: 11.5px; color: #64748b; margin-top: 5px; line-height: 1.5; } .dpd .mt b { font-weight: 600; color: #334155; }
.dpd .ac { margin-top: 10px; padding-top: 9px; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 2px; }
.dpd .ac div { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #334155; padding: 7px 2px; display: flex; align-items: center; gap: 8px; } .dpd .ac div.r { color: #dc2626; } .dpd .ac svg { width: 15px; height: 15px; flex-shrink: 0; }
.dpd .toast { position: absolute; left: 14px; right: 14px; bottom: 10px; background: #0f172a; color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; display: flex; align-items: center; gap: 8px; transform: translateY(80px); transition: transform .4s; z-index: 6; }
.dpd .toast.on { transform: none; } .dpd .toast svg { color: #5eead4; width: 17px; height: 17px; flex-shrink: 0; }

.dpd .sch { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px; flex-shrink: 0; position: relative; transition: opacity .4s, transform .4s; }
.dpd .sch svg.sv { display: block; width: 100%; height: auto; }
.dpd .wire { fill: none; stroke: #475569; stroke-width: 2; }
.dpd .tr { fill: none; stroke: var(--t); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.dpd .tr.go { transition: stroke-dashoffset 1.8s ease-in-out; stroke-dashoffset: 0; }
.dpd .ring { fill: none; stroke: #f59e0b; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dpd .ring.on { opacity: 1; animation: dpd-rg 1.2s ease-in-out infinite; }
@keyframes dpd-rg { 50% { transform: scale(1.12); } }
.dpd .tag { position: absolute; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 600; border-radius: 7px; padding: 4px 8px; opacity: 0; transform: translateY(4px); transition: all .35s; white-space: nowrap; } .dpd .tag.on { opacity: 1; transform: none; }

.dpd .ck { padding: 12px; display: flex; flex-direction: column; gap: 8px; position: absolute; inset: 0; background: #f8fafc; }
.dpd .ckh { font-size: 11px; letter-spacing: .1em; color: #334155; font-weight: 600; } .dpd .ckh2 { font-size: 14px; font-weight: 600; color: #0f172a; margin-top: 2px; }
.dpd .pb { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 6px; } .dpd .pb i { display: block; height: 100%; width: 0; background: var(--t); transition: width .6s ease; }
.dpd .st { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 11px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #334155; line-height: 1.35; transition: all .3s; }
.dpd .st .bx { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; transition: all .3s; } .dpd .st .bx svg { width: 13px; height: 13px; }
.dpd .st.d { border-color: #99f6e4; background: #f0fdfa; } .dpd .st.d .bx { background: var(--t); border-color: var(--t); color: #fff; }
.dpd .st em { font-style: normal; font-size: 11px; color: #64748b; display: block; opacity: 0; height: 0; transition: opacity .4s; } .dpd .st.d em { opacity: 1; height: auto; margin-top: 2px; }
.dpd .aud { background: #0f172a; color: #fff; border-radius: 14px; padding: 11px 12px; font-size: 12px; line-height: 1.45; opacity: 0; transform: translateY(12px); transition: all .5s; }
.dpd .aud.on { opacity: 1; transform: none; } .dpd .aud b { font-weight: 600; color: #5eead4; display: flex; align-items: center; gap: 6px; margin-bottom: 3px; } .dpd .aud b svg { width: 15px; height: 15px; }
.dpd .aud .bt { margin-top: 8px; background: var(--t); border-radius: 8px; text-align: center; padding: 7px; font-weight: 600; }

.dpd-side { display: flex; flex-direction: column; gap: 10px; }
.dpd-tab { text-align: left; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--dp-bg-card); border: 1px solid var(--dp-border); cursor: pointer; color: inherit; font: inherit; transition: border-color .2s, box-shadow .2s, background-color .2s; position: relative; overflow: hidden; }
.dpd-tab:hover { border-color: var(--dp-border-strong); }
.dpd-tab.a { border-color: var(--dp-accent); box-shadow: 0 0 0 1px var(--dp-accent); background: var(--dp-accent-soft); }
.dpd-tab svg { width: 22px; height: 22px; margin-top: 2px; color: var(--dp-text-muted); flex-shrink: 0; } .dpd-tab.a svg { color: var(--dp-accent-text); }
.dpd-tab p { margin: 0; font-size: 15px; font-weight: 600; color: var(--dp-text); letter-spacing: -.01em; }
.dpd-tab span { display: block; font-size: 13px; color: var(--dp-text-secondary); margin-top: 3px; line-height: 1.45; font-weight: 400; }
.dpd-ctl { display: flex; gap: 8px; margin-top: 4px; }
.dpd-ctl button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dp-text-secondary); background: none; border: 1px solid var(--dp-border); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.dpd-ctl button:hover { border-color: var(--dp-border-strong); color: var(--dp-text); }
.dpd-ctl svg { width: 14px; height: 14px; }
