:root { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0f172a; }
body { margin: 0; background: #f5f7fb; line-height: 1.7; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.p2d-hero { background: linear-gradient(120deg, #0f6efc, #5b1bff); color: #fff; padding: 56px 0 48px; }
.p2d-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.p2d-subtitle { margin: 0 0 12px; opacity: 0.95; font-size: 1.15rem; }
.wc-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 8px; }
.wc-bullets { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wc-bullets span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 700; }
.wc-hero-card { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; padding: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18); }
.wc-hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.22); padding: 6px 12px; border-radius: 12px; font-weight: 700; }

.p2d-main { padding: 44px 0 64px; }
.p2d-grid { display: grid; gap: 20px; }
.card { background: #fff; border-radius: 20px; padding: 24px; border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.muted { color: #64748b; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-weight: 700; font-size: 0.9rem; }

.p2d-tool { display: flex; flex-direction: column; gap: 16px; }
.p2d-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px; align-items: stretch; }
.p2d-upload-col { display: flex; flex-direction: column; gap: 14px; }
.p2d-info-col { display: flex; }
.p2d-info-card { border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 18px; display: grid; gap: 10px; }
.p2d-info-card ul { margin: 0; padding-left: 18px; color: #475569; line-height: 1.6; }
.p2d-dropzone { border: 1.5px dashed #94a3b8; border-radius: 16px; padding: 24px; text-align: center; background: #f8fafc; display: grid; gap: 8px; justify-items: center; transition: border-color 0.2s ease, background 0.2s ease; }
.p2d-dropzone.dragging { border-color: #2563eb; background: #eef2ff; }
.p2d-dropzone input[type="file"] { display: none; }
.p2d-drop-icon { width: 54px; height: 54px; border-radius: 14px; background: #eef2ff; color: #1d4ed8; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; }
.drop-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.p2d-file-meta { border-radius: 14px; padding: 12px 14px; background: rgba(15, 23, 42, 0.05); font-size: 0.95rem; }
.p2d-notice { border-radius: 14px; padding: 12px 14px; background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; font-weight: 600; }
.p2d-notice[hidden] { display: none !important; }
.p2d-dropzone .secondary-btn {
  width: 100%;
  max-width: 280px;
  margin-top: 6px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
  font-weight: 700;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
}
.p2d-dropzone .secondary-btn:hover {
  transform: translateY(-1px);
  cursor: pointer;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stack-on-mobile { flex-wrap: wrap; }
.primary-btn, .ghost-btn { border: none; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.primary-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35); }
.primary-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ghost-btn { background: #fff; border: 1px solid #dbeafe; color: #1d4ed8; }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-1px); }

.p2d-progress { border-radius: 14px; border: 1px solid #dbeafe; padding: 12px; background: #fff; display: grid; gap: 6px; }
.p2d-progress[hidden] { display: none !important; }
.p2d-progress-track { width: 100%; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.p2d-progress-bar { width: 0%; height: 100%; background: linear-gradient(135deg, #1d4ed8, #8b5cf6); border-radius: inherit; transition: width 0.35s ease; }
.p2d-alert { border-radius: 14px; padding: 12px; background: #fee2e2; color: #b91c1c; font-weight: 700; }
.p2d-alert[hidden] { display: none !important; }
.p2d-helper { font-size: 0.92rem; color: #475569; }

.p2d-result { border-radius: 18px; background: #f8fafc; border: 1px solid #e2e8f0; display: grid; gap: 12px; }
.p2d-result[hidden] { display: none !important; }
.p2d-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.p2d-result-grid article { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #fff; }
.p2d-result-grid .label { font-size: 0.85rem; margin: 0 0 4px; color: #475569; }
.p2d-result-grid .value { font-size: 1.3rem; font-weight: 700; margin: 0; color: #0f172a; }
.p2d-scan { margin: 0; color: #b45309; font-weight: 600; }
.p2d-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.info-card { border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; padding: 18px; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06); }
.info-card ul { margin: 10px 0 0; padding-left: 18px; color: #475569; line-height: 1.7; }
.info-card ol { margin: 10px 0 0; padding-left: 18px; color: #475569; line-height: 1.7; }

.p2d-faq { display: grid; gap: 10px; }
.p2d-faq-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; }
.p2d-faq-question { width: 100%; border: none; background: none; text-align: left; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1rem; }
.p2d-faq-question::after { content: '▾'; font-size: 0.9rem; color: #475569; transition: transform 0.2s ease; }
.p2d-faq-item.open .p2d-faq-question::after { transform: rotate(180deg); }
.p2d-faq-answer { margin-top: 8px; color: #475569; display: none; }
.p2d-faq-item.open .p2d-faq-answer { display: block; }

.related-links { display: flex; gap: 10px; flex-wrap: wrap; }
.related-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid #dbeafe; background: #eef2ff; color: #1d4ed8; text-decoration: none; font-weight: 700; }

@media (max-width: 980px) {
  .p2d-hero-grid { grid-template-columns: 1fr; }
  .p2d-hero { padding: 36px 0; }
  .p2d-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .card { padding: 18px; }
  .p2d-dropzone { padding: 18px; }
  .cta-row { flex-direction: column; }
  .p2d-result-actions { flex-direction: column; }
}
