@charset "utf-8";
/* ============================================================
   php-diag.css — 무료 진단·상담 신청 / 홈페이지 보안 점검 / 보안 점검 결과
   Figma nMoFviN1mJGhwqUZs7QttB · 2:2 · 3:2 · 4:2   (1440 시안, 본문 폭 1200)

   php-upgrade.css 와 함께 읽는다(색 변수 --pu-*, .pu-title, .pu-btn, .pu-eyebrow, .pu-h2, .pu-lead 를 그대로 쓴다).
   이 파일에서 새로 만든 클래스는 pd- 로 시작한다.
   ============================================================ */

.pd { --pd-line: #e2e2ec; --pd-red: #e5484d; --pd-amber: #f59e0b; --pd-green: #16a34a; }
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd :where(p, h1, h2, h3, h4, dl, dd, dt, ul, ol, table, figure) { margin: 0; padding: 0; }
.pd :where(ul, ol) { list-style: none; }

.pd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.pd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 상태 알약 ─────────────────────────────────────────── */
.pd-pill { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; line-height: 19px; white-space: nowrap; }
.pd-pill--good   { background: #e7f7ee; color: var(--pd-green); }
.pd-pill--warn   { background: #fff4e5; color: #d97706; }
.pd-pill--danger { background: #fdecec; color: var(--pd-red); }
.pd-pill--info   { background: #f1f1f6; color: #666; }

/* ============================================================
   무료 진단·상담 신청 (php_apply.php)
   ============================================================ */
.pd-ap-title { padding: calc(var(--header-h, 80px) + 14px) 20px 46px; text-align: center; }
.pd-ap-title .pu-title__h1 { font-size: 44px; }
.pd-ap-title .pu-title__lead { font-size: 18px; }

.pd-ap { display: flex; gap: 40px; align-items: flex-start; max-width: 1200px; margin: 0 auto; padding: 0 20px 110px; }
.pd-ap__side {
	flex: 0 0 380px; width: 380px; padding: 44px 38px; border-radius: 26px; color: #fff;
	background: linear-gradient(146deg, #2a1e7a 8%, #4a43ee 62%, #7b6cf6 92%);
	position: sticky; top: 110px;
}
.pd-ap__badge { display: inline-block; padding: 6px 16px; border-radius: 20px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); font-size: 13px; font-weight: 600; }
.pd-ap__side h2 { padding-top: 18px; font-size: 26px; font-weight: 800; line-height: 36.4px; }
.pd-ap__steps { padding-top: 30px; }
.pd-ap__steps li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); }
.pd-ap__steps b { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: #fff; color: #4a43ee; font-size: 13px; }
.pd-ap__steps strong { display: block; font-size: 15px; font-weight: 400; line-height: 22.5px; }
.pd-ap__steps small { display: block; padding-top: 2px; font-size: 13px; line-height: 19.5px; opacity: .7; }
.pd-ap__tel { margin-top: 30px; padding: 22px; border-radius: 16px; background: rgba(0,0,0,.18); }
.pd-ap__tel small { display: block; font-size: 13px; opacity: .7; }
.pd-ap__tel a { display: block; padding-top: 4px; font-size: 26px; font-weight: 700; color: #fff; text-decoration: none; }
.pd-ap__tel span { display: block; padding-top: 4px; font-size: 13px; opacity: .7; }
.pd-ap__chat { display: flex; align-items: center; justify-content: center; margin-top: 14px; height: 52px; border-radius: 26px; background: #fff; color: #4a43ee; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pd-ap__chat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.pd-ap__chat:focus-visible { outline: 3px solid #ffd84d; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .pd-ap__chat { transition: none; } .pd-ap__chat:hover { transform: none; } }

.pd-form { flex: 1 1 0; min-width: 0; padding: 46px 48px; border: 1px solid var(--pd-line); border-radius: 26px; background: #fff; }
.pd-form__lead { padding: 22px 26px; border-radius: 16px; border-left: 4px solid var(--pu-main); background: #f4f3ff; }
.pd-form__lead strong { display: block; font-size: 17px; }
.pd-form__lead p { padding-top: 6px; font-size: 14.5px; line-height: 23.2px; color: var(--pu-mute); }
.pd-form__h { display: flex; align-items: center; gap: 10px; padding-top: 34px; font-size: 19px; font-weight: 800; }
.pd-form__h::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--pu-main); }
.pd-form__hr { margin-top: 30px; border: 0; border-top: 1px solid var(--pd-line); }
.pd-form__hr + .pd-form__h { padding-top: 30px; }
.pd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 18px; }
.pd-field { min-width: 0; padding-top: 18px; }
.pd-row .pd-field { padding-top: 0; }
.pd-label { display: block; font-size: 14.5px; font-weight: 700; line-height: 21px; }
.pd-label em { font-style: normal; color: var(--pd-red); margin-left: 3px; }
.pd-label small { font-weight: 400; color: #999; }
.pd-input, .pd-select, .pd-area {
	display: block; width: 100%; margin-top: 8px; border: 1px solid var(--pd-line); border-radius: 12px; background: #fff;
	font: inherit; font-size: 15px; color: var(--pu-ink); letter-spacing: -.02em;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pd-input, .pd-select { height: 52px; padding: 0 18px; }
.pd-select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aaa' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center; }
.pd-area { min-height: 130px; padding: 16px 18px; line-height: 24px; resize: vertical; }
.pd-input::placeholder, .pd-area::placeholder { color: #aaa; }
.pd-input:focus, .pd-select:focus, .pd-area:focus { outline: 0; border-color: var(--pu-main); box-shadow: 0 0 0 4px rgba(74,67,238,.1); }
.pd-input.is-bad, .pd-select.is-bad { border-color: var(--pd-red); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.pd-chip { position: relative; }
.pd-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pd-chip span { display: block; padding: 10px 18px; border: 1px solid var(--pd-line); border-radius: 22px; font-size: 14.5px; color: #444; background: #fff; transition: all .12s ease; }
.pd-chip input:checked + span { background: var(--pu-main); border-color: var(--pu-main); color: #fff; font-weight: 700; }
.pd-chip input:focus-visible + span { outline: 3px solid rgba(74,67,238,.35); outline-offset: 2px; }
.pd-file { display: block; margin-top: 8px; padding: 18px; border: 1px dashed var(--pu-pale); border-radius: 12px; background: #fafaff; text-align: center; font-size: 14px; color: var(--pu-mute); cursor: pointer; }
.pd-file b { color: var(--pu-main); }
.pd-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pd-file:focus-within { outline: 3px solid rgba(74,67,238,.35); outline-offset: 2px; }
.pd-file__list { padding-top: 8px; font-size: 13px; color: var(--pu-mute); }
.pd-agree { margin-top: 30px; padding: 20px 22px; border-radius: 14px; background: var(--pu-bg); }
.pd-agree label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; cursor: pointer; }
.pd-agree label.all { padding: 6px 0 12px; border-bottom: 1px solid var(--pd-line); font-weight: 800; }
.pd-agree label.all + label { padding-top: 12px; }
.pd-agree input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; display: grid; place-content: center; }
.pd-agree input:checked { background: var(--pu-main); border-color: var(--pu-main); }
.pd-agree input:checked::after { content: "✓"; color: #fff; font-size: 12px; line-height: 1; }
.pd-agree input:focus-visible { outline: 3px solid rgba(74,67,238,.35); outline-offset: 2px; }
.pd-agree a { margin-left: auto; font-size: 13px; color: var(--pu-mute); text-decoration: underline; }
.pd-submit {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 62px; margin-top: 28px; border: 0; border-radius: 16px;
	background: var(--pu-main); color: #fff; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 12px rgba(74,67,238,.25);
	transition: transform .15s ease, box-shadow .15s ease;
}
.pd-submit:hover { transform: translateY(-2px); }
.pd-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.pd-submit:focus-visible { outline: 3px solid var(--pu-yellow); outline-offset: 3px; }
.pd-form__note { padding-top: 14px; text-align: center; font-size: 13px; color: var(--pu-mute); }
.pd-err { margin-bottom: 18px; padding: 16px 20px; border: 1px solid #f7b4b6; border-radius: 12px; background: #fff8f8; color: var(--pd-red); font-size: 15px; font-weight: 700; }
.pd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 접수 완료 */
.pd-done { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pd-done__box { display: flex; gap: 50px; align-items: center; padding: 50px; border-radius: 26px; background: var(--pu-bg); }
.pd-done__card { flex: 0 0 440px; width: 440px; padding: 40px; border-radius: 22px; background: #fff; box-shadow: 0 20px 25px rgba(30,20,90,.12); text-align: center; }
.pd-done__mark { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 36px; background: linear-gradient(135deg, #4a43ee, #7b6cf6); color: #fff; font-size: 34px; }
.pd-done__card h1 { padding-top: 18px; font-size: 24px; font-weight: 700; }
.pd-done__card > p { padding-top: 10px; font-size: 15px; line-height: 24px; color: var(--pu-mute); }
.pd-done__dl { margin-top: 22px; padding: 14px 18px; border-radius: 12px; background: var(--pu-bg); text-align: left; font-size: 14px; }
.pd-done__dl div { display: flex; gap: 12px; line-height: 28px; }
.pd-done__dl dt { flex: 0 0 72px; color: var(--pu-mute); }
.pd-done__dl dd { min-width: 0; overflow-wrap: anywhere; }
.pd-done__home { display: block; margin-top: 22px; padding: 15px; border-radius: 12px; background: var(--pu-main); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.pd-done__next { flex: 1 1 0; min-width: 0; }
.pd-done__next small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--pu-main); }
.pd-done__next h2 { padding-top: 10px; font-size: 28px; font-weight: 700; }
.pd-done__next ol { padding-top: 24px; }
.pd-done__next li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--pd-line); }
.pd-done__next li b { flex: 0 0 60px; font-size: 16px; color: var(--pu-main); }
.pd-done__next li strong { display: block; font-size: 16px; font-weight: 400; }
.pd-done__next li small { display: block; padding-top: 3px; font-size: 14px; color: var(--pu-mute); }

/* ============================================================
   홈페이지 보안 점검 (security_check.php)
   ============================================================ */
.pd-sc-hero {
	padding: calc(var(--header-h, 80px) + 40px) 20px 150px; text-align: center; color: #fff;
	background:
		radial-gradient(320px circle at 85% 10%, rgba(123,108,246,1), rgba(123,108,246,0)),
		linear-gradient(173deg, #16133a 8%, #2a1e7a 54%, #4a43ee 92%);
}
.pd-sc-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 30px; background: rgba(229,72,77,.15); border: 1px solid rgba(229,72,77,.45); color: #ffb4b6; font-size: 14px; font-weight: 700; }
.pd-sc-hero__badge i { width: 8px; height: 8px; border-radius: 4px; background: #ff5a5f; box-shadow: 0 0 0 4px rgba(255,90,95,.25); }
.pd-sc-hero h1 { padding-top: 26px; font-size: 52px; font-weight: 800; line-height: 67.6px; }
.pd-sc-hero h1 em { font-style: normal; color: var(--pu-yellow); }
.pd-sc-hero p:not(.pd-sc-hero__badge) { padding-top: 20px; font-size: 18px; line-height: 31.5px; opacity: .8; }

.pd-sc-card { position: relative; max-width: 960px; margin: -100px auto 0; padding: 46px 52px; border-radius: 28px; background: #fff; box-shadow: 0 30px 35px rgba(30,20,90,.18); }
.pd-sc-card h2 { font-size: 24px; font-weight: 700; }
.pd-sc-card > p { padding-top: 8px; font-size: 15.5px; color: var(--pu-mute); }
.pd-sc-form { display: flex; gap: 12px; padding-top: 26px; }
.pd-sc-url { flex: 1 1 0; min-width: 0; display: flex; align-items: center; height: 66px; padding: 0 22px; border: 2px solid var(--pu-main); border-radius: 16px; box-shadow: 0 0 0 5px rgba(74,67,238,.08); background: #fff; }
.pd-sc-url span { flex: 0 0 auto; padding-right: 4px; font-size: 18px; color: #999; }
.pd-sc-url input { flex: 1 1 0; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--pu-ink); letter-spacing: -.02em; }
.pd-sc-url input:focus { outline: 0; }
.pd-sc-go { flex: 0 0 220px; width: 220px; height: 66px; border: 0; border-radius: 16px; background: var(--pu-main); color: #fff; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; transition: transform .15s ease; }
.pd-sc-go:hover { transform: translateY(-2px); }
.pd-sc-go:disabled { opacity: .6; cursor: progress; transform: none; }
.pd-sc-go:focus-visible { outline: 3px solid var(--pu-yellow); outline-offset: 3px; }
.pd-sc-agree { display: flex; align-items: center; gap: 8px; padding-top: 16px; font-size: 14px; color: var(--pu-mute); cursor: pointer; }
.pd-sc-agree input { appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid #ccc; border-radius: 5px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.pd-sc-agree input:checked { background: var(--pu-main); border-color: var(--pu-main); }
.pd-sc-agree input:checked::after { content: "✓"; color: #fff; font-size: 11px; line-height: 1; }
.pd-sc-agree input:focus-visible { outline: 3px solid rgba(74,67,238,.35); outline-offset: 2px; }
.pd-sc-msg { padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--pd-red); }
.pd-sc-msg:empty { display: none; }
.pd-sc-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 34px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--pd-line); font-size: 14.5px; color: #444; }
.pd-sc-trust li::before { content: "✓"; margin-right: 6px; font-weight: 900; color: var(--pu-main); }

.pd-sc-run { max-width: 960px; margin: 30px auto 0; padding: 26px 34px; border: 1px dashed var(--pu-pale); border-radius: 20px; background: #fafaff; }
.pd-sc-run[hidden] { display: none; }
.pd-sc-run h3 { font-size: 18px; font-weight: 700; word-break: break-all; }
.pd-sc-bar { height: 10px; margin-top: 14px; border-radius: 10px; background: #e9e8fb; overflow: hidden; }
.pd-sc-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--pu-main), var(--pu-soft)); transition: width .5s ease; }
.pd-sc-steps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; font-size: 14px; color: #999; }
.pd-sc-steps li.is-done { color: var(--pd-green); font-weight: 700; }
.pd-sc-steps li.is-now { color: var(--pu-main); font-weight: 800; }

.pd-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
/* 카드 — PHP 업그레이드 화면의 「왜 올려야 할까요」 카드(.pu-why__card)와 같은 흰 카드.
   단계 색은 알약 하나에만 쓴다(뉴스 카드의 태그 .pu-tag 와 같은 모양). */
.pd-status__card { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 28px; border: 1px solid var(--pu-line); border-radius: 20px; background: #fff; }
.pd-status__tag { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.pd-status__card--red   .pd-status__tag { background: #fdecec; color: var(--pd-red); }
.pd-status__card--amber .pd-status__tag { background: #fff4e5; color: #d97706; }
.pd-status__card--green .pd-status__tag { background: #e7f7ee; color: var(--pd-green); }
.pd-status__ver { padding-top: 18px; font-size: 22px; font-weight: 800; line-height: 1.35; }
.pd-status__p { flex: 1; min-height: 100px; padding-top: 12px; font-size: 15px; line-height: 24.75px; color: var(--pu-mute); }
.pd-status__rec { align-self: stretch; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--pu-bg); }
.pd-status__card:hover { border-color: #cfcdf8; }
.pd-status__rec small { display: block; padding-bottom: 4px; font-size: 12.5px; font-weight: 700; line-height: 18.75px; color: var(--pu-main); }
.pd-status__rec b { font-size: 15px; line-height: 22.5px; }
.pd-gray-note { margin-top: 18px; padding: 16px 22px; border-radius: 14px; background: var(--pu-bg); font-size: 14px; line-height: 1.6; color: var(--pu-mute); }

.pd-cmp { margin-top: 36px; overflow-x: auto; }
.pd-cmp__t { width: 100%; min-width: 760px; border: 1px solid var(--pd-line); border-radius: 22px; border-collapse: separate; border-spacing: 0; overflow: hidden; text-align: left; }
.pd-cmp__t th, .pd-cmp__t td { padding: 18px 26px; font-size: 15.5px; line-height: 23.25px; border-top: 1px solid var(--pd-line); color: #444; }
.pd-cmp__t thead th { height: 92px; border-top: 0; background: var(--pu-bg); color: var(--pu-ink); font-size: 17px; font-weight: 700; vertical-align: middle; }
.pd-cmp__t thead th small { display: block; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--pu-mute); }
.pd-cmp__t thead th.is-pro { background: var(--pu-main); color: #fff; }
.pd-cmp__t thead th.is-pro small { color: var(--pu-pale); }
.pd-cmp__t tbody th { width: 200px; font-weight: 800; color: var(--pu-ink); }
.pd-cmp__t tbody td.is-pro { background: #f7f6ff; font-weight: 700; color: var(--pu-ink); }

.pd-guide { margin-top: 36px; border: 1px solid var(--pd-line); border-radius: 22px; overflow: hidden; }
.pd-guide li { display: flex; align-items: center; gap: 22px; padding: 22px 30px; border-bottom: 1px solid var(--pd-line); }
.pd-guide li:last-child { border-bottom: 0; }
.pd-guide__mark { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 900; }
.pd-guide strong { flex: 0 0 360px; font-size: 17.5px; }
.pd-guide p { font-size: 15px; line-height: 23.25px; color: var(--pu-mute); }

.pd-cta { margin-top: 110px; padding: 76px 20px calc(76px + clamp(30px, 3.125vw, 60px)); text-align: center; color: #fff; background: linear-gradient(165deg, #2a1e7a 0%, #4a43ee 60%, #7b6cf6 100%); }
.pd-cta h2 { font-size: 36px; font-weight: 800; line-height: 48.6px; }
.pd-cta p { padding-top: 16px; font-size: 18px; opacity: .8; }
.pd-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 32px; }

/* ============================================================
   보안 점검 결과 (security_result.php)
   ============================================================ */
.pd-rs-top { padding: calc(var(--header-h, 80px) + 30px) 0 0; background: var(--pu-bg); }
.pd-rs-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pd-rs-meta small { display: block; font-size: 14px; color: var(--pu-mute); }
.pd-rs-meta h1 { padding-top: 4px; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.pd-rs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-rs-actions a, .pd-rs-actions button { display: inline-block; padding: 12px 18px; border: 1px solid var(--pd-line); border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--pu-ink); text-decoration: none; cursor: pointer; }
.pd-rs-actions a:hover, .pd-rs-actions button:hover { border-color: var(--pu-main); color: var(--pu-main); }
.pd-rs-actions a:focus-visible, .pd-rs-actions button:focus-visible { outline: 3px solid rgba(74,67,238,.35); outline-offset: 2px; }

.pd-score { display: flex; align-items: center; gap: 44px; margin-top: 22px; padding: 46px 56px; border-radius: 28px 28px 0 0; color: #fff; background: linear-gradient(167deg, #3a0f1a 0%, #7a1b2a 50%, #e5484d 100%); }
.pd-score--warn    { background: linear-gradient(167deg, #4a2a05 0%, #92560b 50%, #f59e0b 100%); }
.pd-score--good    { background: linear-gradient(167deg, #0a3a1d 0%, #11662f 50%, #16a34a 100%); }
.pd-score--unknown { background: linear-gradient(167deg, #2b2f38 0%, #4b5563 50%, #9ca3af 100%); border-radius: 28px; }
.pd-score__ring { flex: 0 0 190px; width: 190px; height: 190px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(rgba(255,255,255,.95) var(--deg, 0deg), rgba(255,255,255,.18) 0); }
.pd-score__in { width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(40,10,16,.82); }
.pd-score--warn .pd-score__in { background: rgba(70,40,6,.85); }
.pd-score--good .pd-score__in { background: rgba(8,50,26,.85); }
.pd-score--unknown .pd-score__in { background: rgba(35,40,50,.85); }
.pd-score__in b { font-size: 52px; font-weight: 900; line-height: 52px; }
.pd-score__in span { padding-top: 6px; font-size: 14px; opacity: .75; }
.pd-score__txt { flex: 1 1 0; min-width: 0; }
.pd-score__lv { display: inline-block; padding: 6px 16px; border-radius: 20px; background: #fff; font-size: 14px; font-weight: 800; }
.pd-score--danger .pd-score__lv { color: var(--pd-red); }
.pd-score--warn .pd-score__lv { color: #d97706; }
.pd-score--good .pd-score__lv { color: var(--pd-green); }
.pd-score--unknown .pd-score__lv { color: #4b5563; }
.pd-score__txt h2 { padding-top: 16px; font-size: 38px; font-weight: 700; line-height: 51.3px; }
.pd-score__txt p { padding-top: 12px; font-size: 17px; line-height: 28.9px; opacity: .85; }
.pd-score__txt p strong { color: #fff; }
.pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 0 0 28px 28px; background: #fff; box-shadow: 0 16px 20px rgba(30,20,90,.08); }
.pd-stats > div { padding: 26px 32px; border-right: 1px solid var(--pd-line); }
.pd-stats > div:last-child { border-right: 0; }
.pd-stats small { display: block; font-size: 14px; color: var(--pu-mute); }
.pd-stats b { display: block; padding-top: 4px; font-size: 30px; font-weight: 900; }
.pd-stats .is-d b { color: var(--pd-red); }
.pd-stats .is-w b { color: #d97706; }
.pd-stats .is-g b { color: var(--pd-green); }

.pd-rs-body { padding-top: 100px; }
.pd-sec { padding-top: 100px; }
.pd-sec:first-child { padding-top: 0; }
.pd-found { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.pd-found__card { position: relative; padding: 28px; border: 1px solid var(--pd-line); border-radius: 20px; background: #fff; }
.pd-found__card--danger { background: #fff8f8; border: 2px solid #f7b4b6; }
.pd-found__card small { display: block; font-size: 14px; font-weight: 600; color: var(--pu-mute); }
.pd-found__card b { display: block; padding-top: 12px; font-size: 26px; font-weight: 900; overflow-wrap: anywhere; }
.pd-found__card .pd-pill { margin-top: 14px; }
.pd-found__card p { padding-top: 12px; font-size: 14.5px; line-height: 23.2px; color: var(--pu-mute); }

.pd-set { margin-top: 36px; overflow-x: auto; }
.pd-set__t { width: 100%; min-width: 640px; border-collapse: collapse; border-top: 2px solid var(--pu-ink); text-align: left; }
.pd-set__t th, .pd-set__t td { padding: 17px 18px; border-bottom: 1px solid var(--pd-line); font-size: 15.5px; line-height: 1.5; }
.pd-set__t thead th { padding: 15px 18px; background: var(--pu-bg); border-bottom: 0; font-size: 14px; color: var(--pu-mute); }
.pd-set__t tbody th { width: 260px; font-weight: 700; }
.pd-set__t td:last-child, .pd-set__t th:last-child { width: 130px; text-align: center; }

.pd-plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.pd-plan__col { border: 1px solid var(--pd-line); border-radius: 22px; overflow: hidden; background: #fff; }
.pd-plan__head { padding: 22px 26px; color: #fff; }
.pd-plan__head small { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; opacity: .8; }
.pd-plan__head b { display: block; padding-top: 4px; font-size: 22px; }
.pd-plan__col--red .pd-plan__head { background: var(--pd-red); }
.pd-plan__col--amber .pd-plan__head { background: var(--pd-amber); }
.pd-plan__col--blue .pd-plan__head { background: var(--pu-main); }
.pd-plan__col ul { padding: 8px 26px 14px; }
.pd-plan__col li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--pd-line); font-size: 15px; line-height: 22.5px; }
.pd-plan__col li:last-child { border-bottom: 0; }
.pd-plan__col li .pd-pill { flex: 0 0 auto; padding: 3px 9px; font-size: 12px; line-height: 18px; }
.pd-plan__none { padding: 22px 0; font-size: 14.5px; color: var(--pu-mute); }

.pd-sol { display: flex; justify-content: space-between; gap: 40px; margin-top: 100px; padding: 56px; border-radius: 28px; color: #fff; background: linear-gradient(146deg, #2a1e7a 0%, #4a43ee 60%, #7b6cf6 100%); }
.pd-sol__l { flex: 0 1 478px; min-width: 0; padding-top: 10px; }
.pd-sol__l > small { display: block; font-size: 14px; font-weight: 700; letter-spacing: .05em; color: var(--pu-pale); }
.pd-sol__l h2 { padding-top: 10px; font-size: 30px; font-weight: 700; line-height: 42px; }
.pd-sol__cmp { display: flex; align-items: center; gap: 16px; padding-top: 28px; }
.pd-sol__now, .pd-sol__goal { flex: 1 1 0; min-width: 0; padding: 22px 24px; border-radius: 18px; }
.pd-sol__now { background: rgba(0,0,0,.2); }
.pd-sol__goal { background: #fff; color: var(--pu-mute); }
.pd-sol__now small, .pd-sol__goal small { display: block; font-size: 13px; font-weight: 700; }
.pd-sol__now small { opacity: .75; }
.pd-sol__goal small { color: var(--pu-main); }
.pd-sol__now b, .pd-sol__goal b { display: block; padding-top: 4px; font-size: 38px; font-weight: 900; }
.pd-sol__now b { color: #ffb4b6; }
.pd-sol__goal b { color: var(--pd-green); }
.pd-sol__now p, .pd-sol__goal p { padding-top: 6px; font-size: 14px; line-height: 22.4px; }
.pd-sol__arrow { font-size: 28px; font-weight: 900; }
.pd-sol__stats { display: flex; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.pd-sol__stats div { flex: 1 1 0; }
.pd-sol__stats b { display: block; font-size: 26px; font-weight: 900; color: var(--pu-yellow); }
.pd-sol__stats span { font-size: 13.5px; opacity: .8; }
.pd-ask { flex: 0 0 520px; width: 520px; padding: 36px; border-radius: 22px; background: #fff; color: var(--pu-ink); box-shadow: 0 20px 25px rgba(10,5,60,.3); }
.pd-ask h3 { font-size: 22px; font-weight: 700; }
.pd-ask > p { padding-top: 6px; font-size: 16px; line-height: 27.2px; color: var(--pu-mute); }
.pd-ask__attach { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--pu-bg); font-size: 14px; font-weight: 600; }
.pd-ask__attach em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--pu-main); white-space: nowrap; }
.pd-ask .pd-field { padding-top: 14px; }
.pd-ask .pd-label { font-size: 14px; line-height: 20px; }
.pd-ask .pd-input { height: 48px; margin-top: 7px; padding: 0 16px; font-size: 14.5px; }
.pd-ask .pd-area { min-height: 80px; margin-top: 7px; padding: 14px 16px; font-size: 14.5px; }
.pd-ask .pd-row { gap: 12px; padding-top: 0; }
.pd-ask__agree { display: flex; align-items: center; gap: 10px; padding-top: 18px; font-size: 14.5px; cursor: pointer; }
.pd-ask__agree input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; border: 1px solid #ccc; border-radius: 10px; background: #fff; display: grid; place-content: center; cursor: pointer; }
.pd-ask__agree input:checked { background: var(--pu-main); border-color: var(--pu-main); }
.pd-ask__agree input:checked::after { content: "✓"; color: #fff; font-size: 11px; line-height: 1; }
.pd-ask__agree a { color: inherit; }
.pd-ask__law { padding-top: 12px; font-size: 13.5px; line-height: 1.7; color: #999; }
.pd-ask .pd-submit { height: 56px; margin-top: 18px; border-radius: 14px; font-size: 17px; box-shadow: none; }
.pd-rs-note { padding-top: 26px; font-size: 13.5px; line-height: 22.95px; color: var(--pu-mute); }
.pd-rs-end { height: 100px; }
.pd-rs-lost { max-width: 640px; margin: 0 auto; padding: calc(var(--header-h, 80px) + 90px) 20px 120px; text-align: center; }
.pd-rs-lost h1 { font-size: 30px; font-weight: 800; }
.pd-rs-lost p { padding-top: 14px; font-size: 16px; line-height: 1.7; color: var(--pu-mute); }
.pd-rs-lost .pu-btn { margin-top: 28px; background: var(--pu-main); color: #fff; }

/* ── 좁은 화면 ────────────────────────────────────────── */
@media (max-width: 1100px) {
	.pd-ap { flex-direction: column; }
	.pd-ap__side { position: static; flex: none; width: 100%; }
	.pd-done__box { flex-direction: column; padding: 32px 22px; }
	.pd-done__card { flex: none; width: 100%; max-width: 480px; }
	.pd-status, .pd-plan { grid-template-columns: 1fr; }
	.pd-found { grid-template-columns: repeat(2, 1fr); }
	.pd-sol { flex-direction: column; padding: 40px 28px; }
	.pd-sol__l { flex: none; }
	.pd-ask { flex: none; width: 100%; }
	.pd-score { gap: 28px; padding: 38px 32px; }
	.pd-guide strong { flex-basis: 240px; }
}
@media (max-width: 760px) {
	.pd-ap-title .pu-title__h1 { font-size: 32px; }
	.pd-ap-title .pu-title__lead { font-size: 15px; }
	.pd-form { padding: 30px 20px; }
	.pd-row { grid-template-columns: 1fr; }
	.pd-row .pd-field { padding-top: 0; }
	.pd-sc-hero { padding-bottom: 130px; }
	.pd-sc-hero h1 { font-size: 32px; line-height: 42px; }
	.pd-sc-hero p:not(.pd-sc-hero__badge) { font-size: 15px; line-height: 26px; }
	.pd-sc-hero p br { display: none; }
	.pd-sc-card { margin-top: -90px; padding: 32px 22px; border-radius: 22px; }
	.pd-sc-form { flex-direction: column; }
	.pd-sc-go { flex: none; width: 100%; }
	.pd-sc-url { height: 58px; }
	.pd-sc-url span, .pd-sc-url input { font-size: 16px; }
	.pd-sc-run { padding: 22px 18px; }
	.pd-sc-steps { flex-direction: column; }
	.pd-guide li { flex-direction: column; align-items: flex-start; gap: 10px; }
	.pd-guide strong { flex: none; }
	.pd-cta h2 { font-size: 26px; line-height: 36px; }
	.pd-cta p { font-size: 15px; }
	.pd-score { flex-direction: column; text-align: center; padding: 34px 22px; border-radius: 22px 22px 0 0; }
	.pd-score--unknown { border-radius: 22px; }
	.pd-score__txt h2 { font-size: 26px; line-height: 36px; }
	.pd-score__txt p { font-size: 15px; line-height: 26px; }
	.pd-stats { grid-template-columns: 1fr 1fr; }
	.pd-stats > div { border-bottom: 1px solid var(--pd-line); padding: 20px; }
	.pd-found { grid-template-columns: 1fr; }
	.pd-sol__cmp { flex-direction: column; align-items: stretch; }
	.pd-sol__arrow { text-align: center; transform: rotate(90deg); }
	.pd-sol__stats { flex-wrap: wrap; gap: 14px; }
	.pd-ask { padding: 28px 20px; }
	.pd-ask .pd-row { grid-template-columns: 1fr; }
	.pd-done__card { padding: 30px 20px; }
}
@media print {
	.site-header, .site-footer, .pd-rs-actions, .pd-ask, .pd-cta, [data-wv-chat], .pd-noprint { display: none !important; }
	.pd-rs-top { padding-top: 20px; }
	.pd-score, .pd-found__card, .pd-plan__head, .pd-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.pd-sol { break-inside: avoid; }
	.pd-sol .pd-ask { display: none !important; }
	.pd-sec, .pd-found__card, .pd-plan__col { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
	.pd-submit, .pd-sc-go, .pd-sc-bar i { transition: none; }
	.pd-submit:hover, .pd-sc-go:hover { transform: none; }
}

/* ── 움직임 (php-upgrade.css 의 .pu-lift 와 함께 쓴다) ─────────────── */
@media (prefers-reduced-motion: no-preference) {
	.pd-sc-hero__badge i { animation: pdPulse 1.8s ease-out infinite; }
	.pd-sc-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at 15% 90%, rgba(123, 108, 246, .35), rgba(123, 108, 246, 0)); animation: pdDrift 10s ease-in-out infinite alternate; }
	.pd-sc-go { background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 60%); background-size: 250% 100%; background-position: 120% 0; animation: pdShine 3.6s ease-in-out infinite; }
	.pd-submit { background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, 0) 60%); background-size: 250% 100%; background-position: 120% 0; animation: pdShine 4.2s ease-in-out infinite; }
	.pd-guide__mark { animation: pdPop 2.6s ease-in-out infinite; }
	.pd-guide li:nth-child(2) .pd-guide__mark { animation-delay: .3s; }
	.pd-guide li:nth-child(3) .pd-guide__mark { animation-delay: .6s; }
	.pd-guide li:nth-child(4) .pd-guide__mark { animation-delay: .9s; }
}
.pd-sc-hero { position: relative; overflow: hidden; }
.pd-sc-hero > * { position: relative; z-index: 1; }
@keyframes pdPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 95, .55); } 100% { box-shadow: 0 0 0 10px rgba(255, 90, 95, 0); } }
@keyframes pdDrift { from { transform: translate(0, 0); } to { transform: translate(60px, -30px); } }
@keyframes pdShine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
@keyframes pdPop { 0%, 80%, 100% { transform: scale(1); } 90% { transform: scale(1.12); } }
.pd-status__card, .pd-found__card, .pd-plan__col { will-change: auto; }
