/* ============================================================
   PermitXML public page - clean professional theme
   All rules are scoped under .pw so the existing modal/dashboard
   styles on this page are not affected.
   ============================================================ */
.pw {
  --pw-navy: #0b2545;
  --pw-navy-2: #13315c;
  --pw-teal: #0e7c86;
  --pw-teal-600: #0b6870;
  --pw-teal-50: #e7f4f5;
  --pw-bg: #f6f8fb;
  --pw-surface: #ffffff;
  --pw-text: #1b2a41;
  --pw-muted: #5b6b82;
  --pw-border: #e2e8f0;
  --pw-ok: #15803d;
  --pw-radius: 14px;
  --pw-shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px rgba(11, 37, 69, 0.06);
  --pw-font: 'Inter', 'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pw-font-km: 'Kantumruy Pro', 'Inter', system-ui, sans-serif;
  --pw-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  background: var(--pw-bg);
  color: var(--pw-text);
  font-family: var(--pw-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="km"] .pw { font-family: var(--pw-font-km); line-height: 1.75; }
body:has(.pw) { background: #f6f8fb; background-image: none; }

:where(.pw) *, :where(.pw) *::before, :where(.pw) *::after { box-sizing: border-box; }
:where(.pw) a { color: inherit; text-decoration: none; }
:where(.pw) img, :where(.pw) svg { display: block; }
:where(.pw) button { font: inherit; cursor: pointer; }
.pw :focus-visible { outline: 3px solid rgba(14, 124, 134, 0.45); outline-offset: 2px; border-radius: 8px; }

.pw-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.pw-h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; color: var(--pw-navy); margin: 0 0 18px; text-wrap: balance; }
.pw-h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; color: var(--pw-navy); margin: 0; text-wrap: balance; }
.pw-h3 { font-size: 1.08rem; font-weight: 700; color: var(--pw-navy); margin: 0 0 6px; line-height: 1.35; }
html[lang="km"] .pw-h1 { line-height: 1.35; letter-spacing: 0; }
html[lang="km"] .pw-h2, html[lang="km"] .pw-h3 { line-height: 1.5; letter-spacing: 0; }
.pw-lead { font-size: 1.12rem; color: var(--pw-muted); margin: 0 0 28px; max-width: 34rem; }
.pw-muted { color: var(--pw-muted); margin: 0; }
.pw-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pw-teal); margin: 0 0 12px; }
html[lang="km"] .pw-eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
:where(.pw) p { margin: 0; }

/* ---------- Buttons ---------- */
.pw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 650; font-size: 0.92rem; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.pw-btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.pw-btn-sm { height: 34px; padding: 0 12px; font-size: 0.85rem; }
.pw-btn-primary { background: var(--pw-teal); color: #fff; box-shadow: 0 1px 2px rgba(11, 37, 69, .15); }
.pw-btn-primary:hover { background: var(--pw-teal-600); }
.pw-btn-outline { background: var(--pw-surface); color: var(--pw-navy); border-color: var(--pw-border); }
.pw-btn-outline:hover { border-color: #c4cfdd; background: #fbfcfe; }
.pw-btn-ghost { background: transparent; color: var(--pw-navy); }
.pw-btn-ghost:hover { background: #eef2f7; }
.pw-btn-light { background: #fff; color: var(--pw-navy); }
.pw-btn-light:hover { background: #eef6f7; }
.pw-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--pw-border); background: var(--pw-surface); color: var(--pw-navy); }
.pw-icon-btn:hover { background: #eef2f7; }

/* ---------- Header ---------- */
.pw-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--pw-border); }
.pw-header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.pw-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pw-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--pw-navy); color: #fff; }
.pw-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.pw-brand-name { font-weight: 800; color: var(--pw-navy); font-size: 1.05rem; letter-spacing: -0.01em; }
.pw-brand-sub { font-size: 0.72rem; color: var(--pw-muted); }
.pw-nav { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; margin-left: 8px; }
.pw-nav-links { display: flex; align-items: center; gap: 2px; }
.pw-nav-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pw-nav-link { white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--pw-muted); font-weight: 550; font-size: 0.92rem; }
.pw-nav-link:hover { color: var(--pw-navy); background: #eef2f7; }
.pw-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pw-auth-bar { align-items: center; gap: 8px; }

.pw-lang { display: inline-flex; padding: 3px; border-radius: 10px; background: #eef2f7; }
.pw-lang-btn { height: 30px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--pw-muted); font-weight: 650; font-size: 0.82rem; }
.pw-lang-btn[aria-pressed="true"] { background: #fff; color: var(--pw-navy); box-shadow: 0 1px 2px rgba(11, 37, 69, .12); }
.pw-lang-btn[lang="km"] { font-family: var(--pw-font-km); }

.pw-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #cfe5e7; background: var(--pw-teal-50); color: var(--pw-teal-600); font-weight: 700; font-size: 0.85rem; }
.pw-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pw-teal); }
.pw-chip-label { font-weight: 550; }
.pw-user { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--pw-border); background: #fff; color: var(--pw-navy); max-width: 240px; }
.pw-user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pw-navy); color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.pw-user-name { font-weight: 600; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-user-role { font-size: 0.66rem; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: #eef2f7; color: var(--pw-muted); }
.pw-user-role.role-admin { background: #fef3c7; color: #92400e; }
.pw-menu-btn { display: none; }

/* ---------- Hero ---------- */
.pw-hero { padding: 72px 0 64px; background: linear-gradient(180deg, #ffffff 0%, var(--pw-bg) 100%); border-bottom: 1px solid var(--pw-border); }
.pw-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pw-hero-grid > *, .pw-estimator > *, .pw-pricing > *, .pw-features > *, .pw-steps > *, .pw-sec-grid > * { min-width: 0; }
.pw-hero-actions { flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pw-hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; color: var(--pw-muted); font-size: 0.92rem; }
.pw-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.pw-hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--pw-teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; flex-shrink: 0; }

.pw-hero-visual { position: relative; display: flex; flex-direction: column; gap: 14px; }
.pw-doc { background: #fff; border: 1px solid var(--pw-border); border-radius: var(--pw-radius); box-shadow: var(--pw-shadow); padding: 18px; }
.pw-doc-pdf { width: 86%; }
.pw-doc-xml { width: 92%; margin-left: auto; }
.pw-doc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pw-doc-title { font-family: var(--pw-mono); font-size: 0.8rem; color: var(--pw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-file-badge { font-size: 0.68rem; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; color: #fff; flex-shrink: 0; }
.pw-file-pdf { background: #b42318; }
.pw-file-xml { background: var(--pw-navy); }
.pw-ok { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--pw-ok); background: #dcfce7; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }
.pw-doc-fields { display: grid; gap: 8px; font-size: 0.84rem; }
.pw-doc-fields div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--pw-border); padding-bottom: 6px; }
.pw-doc-fields span { color: var(--pw-muted); }
.pw-doc-fields b { color: var(--pw-navy); font-weight: 650; font-family: var(--pw-mono); font-size: 0.78rem; text-align: right; overflow-wrap: anywhere; }
.pw-doc-lines { display: grid; gap: 6px; margin-top: 12px; }
.pw-doc-lines i { display: block; height: 8px; border-radius: 4px; background: #edf1f6; }
.pw-doc-lines i.short { width: 60%; }
.pw-flow-arrow { display: flex; justify-content: center; position: relative; }
.pw-flow-arrow::before { content: ""; position: absolute; top: -14px; bottom: -14px; left: 50%; border-left: 2px dashed #b9c6d6; }
.pw-flow-pill { position: relative; font-size: 0.78rem; font-weight: 700; color: var(--pw-teal-600); background: var(--pw-teal-50); border: 1px solid #cfe5e7; padding: 5px 12px; border-radius: 999px; }
.pw-code { margin: 0; font-family: var(--pw-mono); font-size: 0.78rem; line-height: 1.7; color: var(--pw-text); background: #f8fafc; border: 1px solid var(--pw-border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
.pw-code .t { color: var(--pw-teal-600); }

/* ---------- Strip ---------- */
.pw-strip { background: var(--pw-surface); border-bottom: 1px solid var(--pw-border); }
.pw-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pw-strip-item { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--pw-border); }
.pw-strip-item:first-child { border-left: 0; padding-left: 0; }
.pw-strip-item b { color: var(--pw-navy); font-size: 1.02rem; }
.pw-strip-item span { color: var(--pw-muted); font-size: 0.88rem; }

/* ---------- Sections ---------- */
.pw-section { padding: 88px 0; }
.pw-section-alt { background: var(--pw-surface); border-top: 1px solid var(--pw-border); border-bottom: 1px solid var(--pw-border); }
.pw-section-head { max-width: 640px; margin-bottom: 40px; }

.pw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.pw-step { background: var(--pw-surface); border: 1px solid var(--pw-border); border-radius: var(--pw-radius); padding: 26px; }
.pw-step p { color: var(--pw-muted); font-size: 0.95rem; }
.pw-step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pw-navy); color: #fff; font-weight: 800; margin-bottom: 16px; }

.pw-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pw-card { border: 1px solid var(--pw-border); border-radius: var(--pw-radius); padding: 24px; background: var(--pw-bg); }
.pw-card p { color: var(--pw-muted); font-size: 0.95rem; }
.pw-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--pw-teal-50); color: var(--pw-teal); margin-bottom: 16px; }

/* ---------- Estimator ---------- */
.pw-estimator { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pw-estimator-copy .pw-h2 { margin-bottom: 14px; }
.pw-estimator-card { background: var(--pw-surface); border: 1px solid var(--pw-border); border-radius: var(--pw-radius); box-shadow: var(--pw-shadow); padding: 28px; display: grid; gap: 22px; }
.pw-range { display: grid; gap: 10px; }
.pw-range-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--pw-navy); font-size: 0.95rem; }
.pw-range-top output { font-variant-numeric: tabular-nums; color: var(--pw-teal-600); font-weight: 800; }
.pw-range input[type="range"] { width: 100%; accent-color: var(--pw-teal); height: 24px; margin: 0; }
.pw-estimator-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--pw-border); padding-top: 20px; }
.pw-estimator-result > div { display: flex; flex-direction: column; }
.pw-result-num { font-size: 2rem; font-weight: 800; color: var(--pw-navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pw-result-label { color: var(--pw-muted); font-size: 0.88rem; }

/* ---------- Pricing ---------- */
.pw-pricing { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.pw-price-card { border: 1px solid var(--pw-border); border-radius: var(--pw-radius); padding: 30px; background: var(--pw-bg); display: flex; flex-direction: column; gap: 10px; }
.pw-price-main { background: var(--pw-surface); border-color: #b7dadd; box-shadow: var(--pw-shadow); }
.pw-price-label { font-size: 0.85rem; font-weight: 700; color: var(--pw-teal); text-transform: uppercase; letter-spacing: .06em; }
html[lang="km"] .pw-price-label { text-transform: none; letter-spacing: 0; }
.pw-price-big { font-size: 2.6rem; font-weight: 800; color: var(--pw-navy); line-height: 1.1; }
.pw-price-big span { font-size: 1.1rem; font-weight: 650; color: var(--pw-muted); }
.pw-price-mid { font-size: 1.4rem; font-weight: 750; color: var(--pw-navy); }
.pw-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.pw-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.pw-checks li::before { content: ""; margin-top: 4px; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background: var(--pw-teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7c86' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- Security ---------- */
.pw-sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pw-sec-item { padding: 22px 0 0; border-top: 3px solid var(--pw-navy); }
.pw-sec-item p { color: var(--pw-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.pw-faq-wrap { max-width: 820px; }
.pw-faq { display: grid; gap: 10px; }
.pw-faq-item { border: 1px solid var(--pw-border); border-radius: 12px; background: var(--pw-bg); overflow: hidden; }
.pw-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: transparent; border: 0; text-align: left; color: var(--pw-navy); font-weight: 650; font-size: 1rem; }
.pw-faq-q .faq-toggle-icon { font-size: 1.3rem; color: var(--pw-teal); width: 24px; text-align: center; flex-shrink: 0; }
.pw-faq-a { padding: 0 20px 18px; color: var(--pw-muted); }

/* ---------- CTA / Footer ---------- */
.pw-cta { background: var(--pw-navy); color: #dbe5f1; padding: 64px 0; }
.pw-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pw-cta-title { color: #fff; margin-bottom: 8px; }
.pw-footer { background: #081b33; color: #9fb0c6; padding: 40px 0 32px; font-size: 0.88rem; }
.pw-footer-inner { display: grid; gap: 16px; }
.pw-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pw-footer .pw-brand-name { color: #fff; }
.pw-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pw-footer-links a:hover { color: #fff; }
.pw-footer-legal { max-width: 860px; font-size: 0.8rem; color: #7f93ad; }
.pw-footer-copy { font-size: 0.8rem; color: #7f93ad; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pw-header-inner { justify-content: space-between; }
  .pw-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 16px 18px; margin: 0; background: #fff; border-bottom: 1px solid var(--pw-border); box-shadow: 0 12px 24px rgba(11, 37, 69, .08); }
  .pw-nav.is-open { display: flex; }
  .pw-nav-links { flex-direction: column; align-items: stretch; }
  .pw-nav-link { padding: 12px; }
  .pw-nav-auth { margin-left: 0; padding-top: 12px; border-top: 1px solid var(--pw-border); }
  .pw-nav-auth .pw-auth-bar { flex-wrap: wrap; width: 100%; }
  .pw-nav-auth #welcome-logged-out-bar .pw-btn { flex: 1; }
  .pw-menu-btn { display: inline-flex; }
}
@media (max-width: 1020px) {
  .pw-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pw-hero-visual { max-width: 560px; }
  .pw-features { grid-template-columns: repeat(2, 1fr); }
  .pw-sec-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-estimator { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .pw-container { padding: 0 16px; }
  .pw-header-inner { gap: 10px; height: 60px; }
  .pw-nav { top: 60px; }
  .pw-brand-sub { display: none; }
  .pw-auth-bar .pw-btn-ghost { border: 1px solid var(--pw-border); }
  .pw-hero { padding: 44px 0 40px; }
  .pw-hero-actions .pw-btn-lg { width: 100%; }
  .pw-doc-pdf, .pw-doc-xml { width: 100%; }
  .pw-strip-grid { grid-template-columns: 1fr 1fr; }
  .pw-strip-item { padding: 16px 0 16px 14px; }
  .pw-strip-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pw-strip-item:nth-child(n+3) { border-top: 1px solid var(--pw-border); }
  .pw-section { padding: 60px 0; }
  .pw-steps, .pw-features, .pw-pricing, .pw-sec-grid { grid-template-columns: 1fr; }
  .pw-estimator-card { padding: 20px; }
  .pw-cta-inner .pw-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pw * { transition: none !important; scroll-behavior: auto !important; }
}
html:has(.pw) { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Hide the workspace app's decorative background grid/glows on the public page */
body:has(.pw)::before, body:has(.pw)::after { display: none; }
body:has(.pw) .ambient-glow { display: none; }
.pw { position: relative; z-index: 1; }

html[lang="km"] .pw-nav-links .pw-nav-link { padding: 8px 7px; font-size: 0.86rem; }
html[lang="km"] .pw-nav { gap: 8px; }
html[lang="km"] .pw-btn { font-size: 0.86rem; }


/* ============================================================
   Engagement layer: animated hero, live demo, roles, reveals
   ============================================================ */
.pw-section-sub { margin-top: 10px; }
.pw-small { font-size: 0.85rem; }

/* --- Animated hero --- */
.pw-doc-pdf { position: relative; overflow: hidden; }
.pw-scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(14,124,134,0) 0%, rgba(14,124,134,.16) 70%, rgba(14,124,134,.5) 100%); }
.pw-hero-visual.is-reading .pw-scan { opacity: 1; animation: pw-scan 1.3s ease-in-out infinite; }
@keyframes pw-scan { from { top: -30%; } to { top: 100%; } }
.pw-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pw-teal); margin-right: 8px; vertical-align: 1px; animation: pw-pulse 1.2s ease-in-out infinite; }
.pw-hero-visual.is-done .pw-pulse { background: var(--pw-ok); animation: none; }
@keyframes pw-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.pw-doc-items { width: 100%; }
.pw-items-title { font-weight: 700; color: var(--pw-navy); font-size: 0.9rem; }
.pw-items-count { margin-left: auto; font-size: 0.8rem; color: var(--pw-muted); font-variant-numeric: tabular-nums; }
.pw-items-count b { color: var(--pw-teal-600); }
.pw-anim-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pw-anim-rows li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 0.8rem; padding: 7px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--pw-border);
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, background .6s ease; }
.pw-anim-rows li.is-in { opacity: 1; transform: none; }
.pw-anim-rows li.is-new { background: var(--pw-teal-50); }
.pw-anim-rows span { font-weight: 600; color: var(--pw-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-anim-rows code { font-family: var(--pw-mono); font-size: 0.74rem; color: var(--pw-teal-600); background: #fff; border: 1px solid #cfe5e7; padding: 1px 6px; border-radius: 6px; }
.pw-anim-rows em { font-style: normal; color: var(--pw-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.pw-xml-ready { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--pw-border);
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.pw-hero-visual.is-done .pw-xml-ready { opacity: 1; transform: none; }

/* --- Demo --- */
.pw-demo { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.pw-demo-steps { display: grid; gap: 10px; position: sticky; top: 92px; }
.pw-demo-tab { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--pw-border); background: var(--pw-surface); color: var(--pw-navy); transition: border-color .15s, box-shadow .15s, background .15s; }
.pw-demo-tab:hover { border-color: #c4cfdd; }
.pw-demo-tab.is-active { border-color: var(--pw-teal); box-shadow: 0 0 0 3px rgba(14,124,134,.12); }
.pw-demo-tab.is-done .pw-demo-tab-num { background: var(--pw-ok); color: #fff; }
.pw-demo-tab-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: #eef2f7; color: var(--pw-navy); font-weight: 800; flex-shrink: 0; }
.pw-demo-tab.is-active .pw-demo-tab-num { background: var(--pw-teal); color: #fff; }
.pw-demo-tab-text { display: flex; flex-direction: column; line-height: 1.3; }
.pw-demo-tab-text small { color: var(--pw-muted); font-size: 0.8rem; }

.pw-window { background: var(--pw-surface); border: 1px solid var(--pw-border); border-radius: 16px; box-shadow: 0 2px 4px rgba(11,37,69,.04), 0 18px 40px rgba(11,37,69,.10); overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.pw-window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pw-border); background: #f8fafc; }
.pw-dots { display: inline-flex; gap: 6px; }
.pw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dee8; }
.pw-window-title { font-size: 0.82rem; color: var(--pw-muted); font-weight: 600; }
.pw-demo-badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: #92400e; background: #fef3c7; padding: 2px 8px; border-radius: 999px; }
.pw-demo-panel { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 16px; animation: pw-fade .35s ease; }
.pw-demo-panel[hidden] { display: none; }
@keyframes pw-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pw-drop { flex: 1; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed #b9c6d6; border-radius: 14px; background: #fbfcfe; color: var(--pw-navy); transition: border-color .15s, background .15s, transform .15s; }
.pw-drop:hover { border-color: var(--pw-teal); background: var(--pw-teal-50); }
.pw-drop:active { transform: scale(.995); }
.pw-drop small { color: var(--pw-muted); font-family: var(--pw-mono); font-size: 0.78rem; }
.pw-drop-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; background: var(--pw-teal-50); color: var(--pw-teal); margin-bottom: 6px; }
.pw-progress { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 300px; padding: 0 8px; }
.pw-progress[hidden] { display: none; }
.pw-progress-top { display: flex; justify-content: space-between; font-weight: 650; color: var(--pw-navy); }
.pw-progress-top b { font-variant-numeric: tabular-nums; color: var(--pw-teal-600); }
.pw-progress-bar { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.pw-progress-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pw-teal), #19a3a0); transition: width .25s ease; }
.pw-progress-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--pw-muted); }
.pw-progress-log li { display: flex; gap: 8px; align-items: center; animation: pw-fade .3s ease; }
.pw-progress-log li::before { content: "✓"; color: var(--pw-ok); font-weight: 800; }

.pw-demo-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pw-demo-summary div { padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--pw-border); display: flex; flex-direction: column; min-width: 0; }
.pw-demo-summary span { font-size: 0.75rem; color: var(--pw-muted); }
.pw-demo-summary b { color: var(--pw-navy); font-variant-numeric: tabular-nums; font-size: 1rem; }
.pw-table-wrap { overflow-x: auto; border: 1px solid var(--pw-border); border-radius: 10px; }
.pw-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 560px; }
.pw-table th { text-align: left; font-weight: 650; color: var(--pw-muted); font-size: 0.76rem; background: #f8fafc; padding: 9px 12px; border-bottom: 1px solid var(--pw-border); white-space: nowrap; }
.pw-table td { padding: 9px 12px; border-bottom: 1px solid var(--pw-border); color: var(--pw-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pw-table tr:last-child td { border-bottom: 0; }
.pw-table tbody tr { animation: pw-fade .3s ease both; }
.pw-hs-btn { font-family: var(--pw-mono); font-size: 0.78rem; color: var(--pw-teal-600); background: var(--pw-teal-50); border: 1px solid #cfe5e7; padding: 2px 7px; border-radius: 6px; }
.pw-hs-btn:hover { border-color: var(--pw-teal); }
.pw-hs-why { display: block; white-space: normal; font-size: 0.76rem; color: var(--pw-muted); margin-top: 4px; max-width: 260px; }
.pw-demo-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.pw-demo-actions .pw-btn-primary { margin-left: auto; }
.pw-demo-file { display: flex; align-items: center; gap: 10px; }
.pw-code-tall { max-height: 280px; overflow: auto; }

/* --- Roles --- */
.pw-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pw-roles > * { min-width: 0; }
.pw-role { position: relative; padding: 26px; border-radius: var(--pw-radius); border: 1px solid var(--pw-border); background: var(--pw-surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.pw-role:hover { transform: translateY(-3px); box-shadow: var(--pw-shadow); border-color: #c9d6e3; }
.pw-role p { color: var(--pw-muted); font-size: 0.95rem; margin-bottom: 14px; }
.pw-role-emoji { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; font-size: 1.5rem; background: #f1f5f9; margin-bottom: 14px; }
.pw-role-tag { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--pw-teal-600); background: var(--pw-teal-50); padding: 3px 10px; border-radius: 999px; }

/* --- Hover polish on existing cards --- */
.pw-card, .pw-step { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.pw-card:hover, .pw-step:hover { transform: translateY(-3px); box-shadow: var(--pw-shadow); border-color: #c9d6e3; }

/* --- Scroll reveal (only when JS is running) --- */
html.pw-js .pw-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.pw-js .pw-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .pw-demo { grid-template-columns: 1fr; }
  .pw-demo-steps { position: static; grid-template-columns: repeat(3, 1fr); }
  .pw-demo-tab-text small { display: none; }
  .pw-roles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pw-demo-tab { flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; }
  .pw-demo-panel { padding: 14px; }
  .pw-demo-summary { grid-template-columns: 1fr 1fr; }
  .pw-window-title { display: none; }
  .pw-drop, .pw-progress { min-height: 240px; }
  .pw-anim-rows em { min-width: 0; }
  .pw-anim-rows li { grid-template-columns: 1fr auto; }
  .pw-anim-rows em { display: none; }
  .pw-demo-actions .pw-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html.pw-js .pw-reveal { opacity: 1; transform: none; transition: none; }
  .pw-anim-rows li, .pw-xml-ready { transition: none; }
  .pw-scan, .pw-pulse { animation: none !important; }
  .pw-demo-panel, .pw-table tbody tr, .pw-progress-log li { animation: none; }
}
.pw-hs-why[hidden] { display: none; }
.pw-table .pw-hs-why { min-width: 200px; }

/* ============================================================
   Speed layer: stopwatch, real-speed line, race, snappier motion
   ============================================================ */
.pw-hero-visual { position: relative; }
.pw-stopwatch { position: absolute; top: -14px; right: -6px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--pw-navy); color: #fff; font-weight: 800; font-size: 0.9rem; box-shadow: 0 8px 22px rgba(11,37,69,.28); font-variant-numeric: tabular-nums; }
.pw-stopwatch b { min-width: 3.4em; text-align: right; }
.pw-stopwatch.is-done { background: #15803d; }
.pw-stopwatch.is-done .pw-stopwatch-icon { animation: none; }
.pw-stopwatch-icon { display: inline-block; }
.pw-hero-visual.is-reading .pw-stopwatch-icon { animation: pw-tick 1s steps(4) infinite; }
@keyframes pw-tick { to { transform: rotate(360deg); } }

.pw-real-speed { display: inline-flex; align-items: center; gap: 8px; margin: -8px 0 18px; padding: 6px 12px; border-radius: 999px; background: #ecfdf3; color: #166534; font-size: 0.86rem; font-weight: 650; border: 1px solid #bbf7d0; }
.pw-real-speed .pw-pulse { background: #16a34a; margin-right: 0; }

/* Race */
.pw-race-section { background: linear-gradient(180deg, var(--pw-bg) 0%, #eef6f7 100%); }
.pw-race { background: var(--pw-surface); border: 1px solid var(--pw-border); border-radius: 18px; box-shadow: var(--pw-shadow); padding: 26px; display: grid; gap: 22px; }
.pw-race-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pw-chips { display: inline-flex; gap: 6px; padding: 4px; background: #eef2f7; border-radius: 12px; }
.pw-chip-btn { border: 0; background: transparent; color: var(--pw-muted); font-weight: 700; padding: 8px 14px; border-radius: 9px; font-size: 0.9rem; }
.pw-chip-btn[aria-pressed="true"] { background: #fff; color: var(--pw-navy); box-shadow: 0 1px 2px rgba(11,37,69,.12); }
.pw-lane { display: grid; gap: 8px; }
.pw-lane-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pw-lane-name { font-weight: 700; color: var(--pw-navy); }
.pw-lane-time { font-weight: 800; font-size: 1.35rem; color: var(--pw-navy); font-variant-numeric: tabular-nums; }
.pw-lane-us .pw-lane-time { color: var(--pw-teal-600); }
.pw-lane-track { position: relative; height: 16px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.pw-lane-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; }
.pw-lane-slow { background: repeating-linear-gradient(45deg, #94a3b8 0 10px, #a8b4c4 10px 20px); }
.pw-lane-fast { background: linear-gradient(90deg, var(--pw-teal), #22c5b8); box-shadow: 0 0 16px rgba(14,124,134,.45); }
.pw-lane-note { font-size: 0.82rem; color: var(--pw-muted); }
.pw-race-result { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #ecfdf3; border: 1px solid #bbf7d0; color: #14532d; font-weight: 650; animation: pw-pop .35s cubic-bezier(.2,1.4,.4,1); }
.pw-race-result[hidden] { display: none; }
.pw-race-trophy { font-size: 1.5rem; }
@keyframes pw-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Snappier feel: quick press feedback and faster reveals */
.pw-btn:active, .pw-chip-btn:active, .pw-demo-tab:active, .pw-lang-btn:active { transform: scale(.97); }
.pw-btn, .pw-chip-btn { transition: transform .08s ease, background .15s, border-color .15s, box-shadow .15s; }
html.pw-js .pw-reveal { transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }

/* Render below-the-fold sections lazily (faster first paint) */
.pw-section, .pw-cta, .pw-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

@media (max-width: 720px) {
  .pw-stopwatch { top: -12px; right: 0; font-size: 0.82rem; }
  .pw-race { padding: 18px; }
  .pw-race-controls .pw-btn { width: 100%; }
  .pw-lane-time { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-stopwatch-icon, .pw-race-result { animation: none !important; }
}

/* ============================================================
   Hero "drop → done" visual (replaces the document mock)
   ============================================================ */
.pw-magic { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; padding: 28px 10px; }
.pw-orb { position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55; pointer-events: none; }
.pw-orb-a { width: 260px; height: 260px; background: #2dd4bf; top: 0; right: 4%; animation: pw-orb 9s ease-in-out infinite; }
.pw-orb-b { width: 220px; height: 220px; background: #60a5fa; bottom: 0; left: 6%; animation: pw-orb 11s ease-in-out infinite reverse; }
@keyframes pw-orb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px, 18px) scale(1.08); } }

.pw-float { position: absolute; z-index: 3; font-family: var(--pw-mono); font-size: 0.78rem; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  background: #fff; color: var(--pw-navy); border: 1px solid var(--pw-border); box-shadow: 0 8px 20px rgba(11,37,69,.12); animation: pw-bob 5s ease-in-out infinite; white-space: nowrap; }
.pw-float-1 { top: 6%; left: 2%; color: var(--pw-teal-600); }
.pw-float-2 { top: 22%; right: -2%; animation-delay: -1.2s; background: #fef3c7; border-color: #fde68a; color: #92400e; }
.pw-float-3 { bottom: 14%; left: -3%; animation-delay: -2.4s; color: var(--pw-teal-600); }
.pw-float-4 { bottom: 4%; right: 6%; animation-delay: -3.3s; background: #dcfce7; border-color: #bbf7d0; color: #166534; }
@keyframes pw-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pw-magic-card { position: relative; z-index: 2; width: min(440px, 100%); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #0b2545 0%, #13315c 60%, #0e4a5c 100%); color: #e2e8f0;
  box-shadow: 0 30px 60px rgba(11,37,69,.35), 0 0 0 1px rgba(255,255,255,.06) inset; }
.pw-magic-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pw-magic-bar .pw-dots i { background: rgba(255,255,255,.22); }
.pw-magic-title { font-weight: 700; font-size: 0.85rem; color: #cbd5e1; }
.pw-magic-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: .08em; color: #5eead4; }
.pw-magic-live .pw-pulse { background: #2dd4bf; margin-right: 0; }

.pw-stage { position: relative; height: 330px; }
.pw-scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 22px;
  opacity: 0; transform: scale(.96); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.pw-magic[data-scene="drop"] .pw-scene-drop,
.pw-magic[data-scene="read"] .pw-scene-read,
.pw-magic[data-scene="done"] .pw-scene-done { opacity: 1; transform: none; }

/* drop scene */
.pw-dropzone { position: relative; width: 100%; height: 210px; border: 2px dashed rgba(148,163,184,.45); border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px;
  transition: border-color .25s, background .25s; }
.pw-magic.is-hover .pw-dropzone { border-color: #2dd4bf; background: rgba(45,212,191,.08); }
.pw-drop-hint { font-weight: 650; color: #94a3b8; font-size: 0.92rem; }
.pw-file-fly { position: absolute; left: 50%; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, -50%); }
.pw-file-ico { width: 58px; height: 72px; border-radius: 10px; background: #fff; color: #b42318; font-weight: 900; font-size: 0.8rem; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,.35); position: relative; }
.pw-file-ico::before { content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: linear-gradient(225deg, #0b2545 50%, #e2e8f0 50%); border-top-right-radius: 10px; }
.pw-file-name { font-family: var(--pw-mono); font-size: 0.72rem; color: #cbd5e1; }
.pw-magic[data-scene="drop"] .pw-file-fly { animation: pw-fly 1.1s cubic-bezier(.3,.9,.3,1) both; }
@keyframes pw-fly { 0% { transform: translate(-190%, -170%) rotate(-14deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(0); } }
.pw-cursor { position: absolute; width: 22px; height: 22px; left: 50%; top: 42%; margin-left: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9.5 21z' fill='white' stroke='%230b2545' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pw-magic[data-scene="drop"] .pw-cursor { animation: pw-cursor 1.1s cubic-bezier(.3,.9,.3,1) both; }
@keyframes pw-cursor { 0% { transform: translate(-180px, -150px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(0, 0); } }

/* reading scene */
.pw-ring { position: relative; width: 150px; height: 150px; }
.pw-ring svg { transform: rotate(-90deg); display: block; }
.pw-ring-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 10; }
.pw-ring-fg { fill: none; stroke: url(#pwRingGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; filter: drop-shadow(0 0 8px rgba(45,212,191,.6)); }
.pw-ring-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pw-ring-center b { font-size: 2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.pw-steps-live { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 270px; }
.pw-steps-live li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: #64748b; transition: color .2s; }
.pw-step-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #475569; flex-shrink: 0; position: relative; transition: all .2s; }
.pw-steps-live li.is-active { color: #e2e8f0; }
.pw-steps-live li.is-active .pw-step-dot { border-color: #2dd4bf; border-top-color: transparent; animation: pw-spin .7s linear infinite; }
.pw-steps-live li.is-done { color: #94a3b8; }
.pw-steps-live li.is-done .pw-step-dot { border-color: #4ade80; background: #4ade80; }
.pw-steps-live li.is-done .pw-step-dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #0b2545; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes pw-spin { to { transform: rotate(360deg); } }

/* done scene */
.pw-check svg circle { fill: none; stroke: #4ade80; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.pw-check svg path { fill: none; stroke: #4ade80; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.pw-magic[data-scene="done"] .pw-check svg circle { animation: pw-draw .5s ease forwards; }
.pw-magic[data-scene="done"] .pw-check svg path { animation: pw-draw .35s .35s ease forwards; }
@keyframes pw-draw { to { stroke-dashoffset: 0; } }
.pw-done-title { font-size: 1.45rem; font-weight: 800; color: #fff; }
.pw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pw-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.pw-tile b { font-size: 1.5rem; font-weight: 800; color: #5eead4; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pw-tile span { font-size: 0.74rem; color: #94a3b8; }
.pw-magic[data-scene="done"] .pw-tile { animation: pw-pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.pw-magic[data-scene="done"] .pw-tile:nth-child(2) { animation-delay: .08s; }
.pw-magic[data-scene="done"] .pw-tile:nth-child(3) { animation-delay: .16s; }
.pw-dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; background: linear-gradient(90deg, #14b8a6, #22c55e); color: #052e2b; font-weight: 800; font-size: 0.9rem; }
.pw-magic[data-scene="done"] .pw-dl { animation: pw-glow 1.4s .6s ease-in-out infinite; }
@keyframes pw-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(45,212,191,.5); } 50% { box-shadow: 0 0 0 10px rgba(45,212,191,0); } }
.pw-burst { position: absolute; left: 50%; top: 34%; width: 0; height: 0; }
.pw-burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; opacity: 0; }
.pw-burst i:nth-child(odd) { background: #2dd4bf; } .pw-burst i:nth-child(even) { background: #fbbf24; }
.pw-burst i:nth-child(3n) { background: #60a5fa; border-radius: 50%; }
.pw-magic[data-scene="done"] .pw-burst i { animation: pw-confetti .9s ease-out forwards; }
.pw-burst i:nth-child(1) { --x: -110px; --y: -60px; } .pw-burst i:nth-child(2) { --x: 110px; --y: -70px; }
.pw-burst i:nth-child(3) { --x: -140px; --y: 20px; }  .pw-burst i:nth-child(4) { --x: 140px; --y: 10px; }
.pw-burst i:nth-child(5) { --x: -70px; --y: -110px; } .pw-burst i:nth-child(6) { --x: 80px; --y: -115px; }
.pw-burst i:nth-child(7) { --x: -30px; --y: 90px; }   .pw-burst i:nth-child(8) { --x: 40px; --y: 95px; }
@keyframes pw-confetti { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(220deg); } }

@media (max-width: 720px) {
  .pw-magic { min-height: 400px; padding: 22px 0; }
  .pw-float-2 { right: 0; } .pw-float-3 { left: 0; }
  .pw-stage { height: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-orb, .pw-float, .pw-file-fly, .pw-cursor, .pw-dl, .pw-burst i, .pw-step-dot { animation: none !important; }
}
.pw-real-speed[hidden] { display: none; }
@media (max-width: 720px) { .pw-float { display: none; } }
