/*
 * 닥터데스크 (관리자 기능 소개 페이지, doctordesk.html) — css/site.css 다음에 불러온다.
 * 관리자 화면과 같은 청록(teal) 브랜드 색을 쓰고, 이 페이지 전용 구성 요소는 d-* 클래스로 만든다.
 */
:root {
	--s-primary: #0E7490;
	--s-primary-dark: #155E75;
	--s-primary-soft: #E8F5F8;
	--s-accent: #F59E0B;
	--s-accent-soft: #FEF3C7;
	--s-ink: #0B2530;
	--s-text: #344054;
	--s-muted: #667085;
	--s-line: #E4E7EC;
	--s-bg-alt: #F6F8FA;
	--s-footer-bg: #06212A;
	--s-footer-text: #9FB7BF;
	--d-dark: #062A33;
	--d-dark-2: #0B3B47;
	--d-glow: #22D3EE;
}

.s-logo__mark { background: var(--s-primary); }
.s-nav .s-nav__cta { background: var(--s-primary); }

/* ---------- 첫 화면 ---------- */
.d-hero { position: relative; overflow: hidden; color: #CFE3E8; background: radial-gradient(1200px 600px at 80% -10%, #0F5566 0%, transparent 60%), linear-gradient(180deg, var(--d-dark) 0%, var(--d-dark-2) 100%); }
.d-hero:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); pointer-events: none; }
.d-hero .s-wrap { position: relative; padding-top: 88px; padding-bottom: 0; text-align: center; }
.d-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); color: #A5F3FC; font-size: 14px; font-weight: 600; }
.d-hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--d-glow); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.d-hero h1 { margin: 22px auto 0; max-width: 880px; color: #fff; font-size: 56px; line-height: 1.22; letter-spacing: -.035em; font-weight: 700; }
.d-hero h1 em { font-style: normal; background: linear-gradient(90deg, #67E8F9, #5EEAD4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d-hero__desc { margin: 22px auto 0; max-width: 640px; font-size: 19px; color: #A9C4CB; }
.d-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.d-hero__actions .s-btn { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.d-btn-glow { background: linear-gradient(135deg, #0EA5C6, #0E7490); border-color: transparent; box-shadow: 0 10px 30px rgba(14, 165, 198, .35); }
.d-btn-glow:hover { background: linear-gradient(135deg, #0B93B1, #155E75); }
.d-btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.d-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.d-hero__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: #8FB1B9; }
.d-hero__chips li { display: inline-flex; align-items: center; gap: 6px; }
.d-hero__chips svg { width: 16px; height: 16px; color: #5EEAD4; }

/* 화면 캡처 (브라우저 틀) */
.d-shot { position: relative; margin: 0; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(2, 18, 23, .45), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.d-shot__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #F2F4F7; border-bottom: 1px solid #E4E7EC; }
.d-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D0D5DD; }
.d-shot__bar i:nth-child(1) { background: #FF6B6B; } .d-shot__bar i:nth-child(2) { background: #FFC94D; } .d-shot__bar i:nth-child(3) { background: #3DD68C; }
.d-shot__bar span { flex: 1; margin: 0 40px 0 14px; height: 20px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 20px; color: #98A2B3; text-align: center; }
.d-shot img { display: block; width: 100%; height: auto; }
.d-shot.is-dark { background: #0F1A1F; }
.d-shot.is-dark .d-shot__bar { background: #1B262B; border-bottom-color: #26343A; }
.d-shot.is-dark .d-shot__bar span { background: #0F1A1F; color: #5B6B72; }

.d-stage { position: relative; max-width: 1080px; margin: 64px auto 0; padding-bottom: 0; }
.d-stage .d-shot--main { position: relative; z-index: 2; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.d-stage .d-shot--dark { position: absolute; z-index: 1; right: -90px; top: -40px; width: 44%; opacity: .9; transform: rotate(2deg); }
.d-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--s-ink); font-size: 14px; font-weight: 600; text-align: left; box-shadow: 0 16px 40px rgba(2, 18, 23, .25); animation: s-float 6s ease-in-out infinite; }
.d-float small { display: block; font-size: 12px; font-weight: 500; color: var(--s-muted); }
.d-float__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--s-primary-soft); color: var(--s-primary); }
.d-float__icon svg { width: 20px; height: 20px; }
.d-float--a { left: -70px; top: 140px; }
.d-float--b { right: -50px; bottom: 120px; animation-delay: -3s; }
.d-float--b .d-float__icon { background: #ECFDF3; color: #039855; }

/* ---------- 숫자 띠 ---------- */
.d-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--s-line); }
.d-stats div { padding: 34px 16px; text-align: center; border-right: 1px solid var(--s-line); }
.d-stats div:last-child { border-right: 0; }
.d-stats b { display: block; font-size: 36px; color: var(--s-ink); letter-spacing: -.02em; line-height: 1.2; }
.d-stats b small { font-size: 18px; margin-left: 2px; color: var(--s-primary); }
.d-stats span { color: var(--s-muted); font-size: 15px; }

/* ---------- 고민 → 해결 ---------- */
.d-pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-pain__card { position: relative; border-radius: 20px; background: #fff; border: 1px solid var(--s-line); padding: 28px; }
.d-pain__q { display: flex; gap: 10px; color: var(--s-muted); font-size: 15px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--s-line); }
.d-pain__q:before { content: "?"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #FEF3F2; color: #D92D20; font-weight: 700; font-size: 13px; }
.d-pain__a h3 { font-size: 19px; margin-bottom: 6px; }
.d-pain__a p { color: var(--s-muted); font-size: 15px; }
.d-pain__a h3:before { content: ""; display: inline-block; width: 18px; height: 10px; margin-right: 8px; border-left: 3px solid var(--s-primary); border-bottom: 3px solid var(--s-primary); transform: rotate(-45deg) translateY(-4px); }

/* ---------- 기능 탭 ---------- */
.d-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.d-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--s-line); border-radius: 999px; background: #fff; color: var(--s-text); font-weight: 600; font-size: 16px; cursor: pointer; transition: all .15s; }
.d-tabs button svg { width: 18px; height: 18px; }
.d-tabs button:hover { border-color: var(--s-primary); color: var(--s-primary); }
.d-tabs button.is-active { background: var(--s-ink); border-color: var(--s-ink); color: #fff; box-shadow: 0 8px 20px rgba(11, 37, 48, .2); }
.d-panel { display: none; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.d-panel.is-active { display: grid; animation: d-fade .35s ease; }
@keyframes d-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.d-panel__img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(16, 24, 40, .12); }
.d-panel h3 { font-size: 30px; letter-spacing: -.02em; margin: 6px 0 12px; }
.d-panel > div > p { color: var(--s-muted); font-size: 17px; margin-bottom: 22px; }
.d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.d-list li { display: flex; gap: 12px; }
.d-list li:before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--s-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7490' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.d-list b { display: block; color: var(--s-ink); }
.d-list span { display: block; color: var(--s-muted); font-size: 15px; }

/* ---------- 홈페이지 연동 ---------- */
.d-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.d-site { display: block; color: inherit; }
.d-site:hover { text-decoration: none; }
.d-site .d-shot { box-shadow: 0 20px 50px rgba(16, 24, 40, .12), 0 0 0 1px var(--s-line); transition: transform .2s, box-shadow .2s; }
.d-site:hover .d-shot { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(16, 24, 40, .16), 0 0 0 1px var(--s-line); }
.d-site__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.d-site__meta b { font-size: 19px; color: var(--s-ink); }
.d-site__meta span { color: var(--s-primary); font-weight: 600; }
.d-site__meta small { display: block; color: var(--s-muted); font-size: 14px; font-weight: 400; }

/* ---------- 화면 모음 ---------- */
.d-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.d-gallery figure { margin: 0; }
.d-gallery .d-shot { box-shadow: 0 16px 40px rgba(16, 24, 40, .1), 0 0 0 1px var(--s-line); }
.d-gallery figcaption { margin-top: 14px; }
.d-gallery figcaption b { display: block; color: var(--s-ink); font-size: 17px; }
.d-gallery figcaption span { color: var(--s-muted); font-size: 15px; }

/* ---------- 보안 / 편의 그리드 ---------- */
.d-dark-section { background: linear-gradient(180deg, var(--d-dark) 0%, #0A3540 100%); color: #A9C4CB; }
.d-dark-section .s-section__title { color: #fff; }
.d-dark-section .s-section__desc { color: #8FB1B9; }
.d-dark-section .s-eyebrow { color: #5EEAD4; }
.d-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.d-sec__img { width: 100%; border-radius: 20px; }
.d-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.d-tile { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.d-tile svg { width: 26px; height: 26px; color: #5EEAD4; margin-bottom: 10px; }
.d-tile b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.d-tile span { font-size: 14px; color: #8FB1B9; }

.d-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.d-feature { padding: 26px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--s-line); }
.d-feature .s-card__icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; }
.d-feature .s-card__icon svg { width: 24px; height: 24px; }
.d-feature h3 { font-size: 17px; margin-bottom: 6px; }
.d-feature p { color: var(--s-muted); font-size: 14.5px; }

/* 라이트/다크 비교 */
.d-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.d-compare figcaption { margin-top: 12px; text-align: center; color: var(--s-muted); font-weight: 600; }

/* ---------- 도입 절차 ---------- */
.d-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: d; position: relative; }
.d-steps:before { content: ""; position: absolute; left: 12%; right: 12%; top: 31px; height: 2px; background: repeating-linear-gradient(90deg, var(--s-primary) 0 8px, transparent 8px 16px); opacity: .5; }
.d-steps li { position: relative; text-align: center; padding: 0 16px; counter-increment: d; }
.d-steps li:before { content: counter(d, decimal-leading-zero); position: relative; z-index: 1; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--s-primary); color: var(--s-primary); font-weight: 700; font-size: 20px; box-shadow: 0 0 0 8px #fff; }
.d-steps h3 { font-size: 19px; margin: 18px 0 6px; }
.d-steps p { color: var(--s-muted); font-size: 15px; }

/* ---------- FAQ (details) ---------- */
.d-faq { max-width: 860px; margin: 0 auto; }
.d-faq details { border: 1px solid var(--s-line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.d-faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; color: var(--s-ink); }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary:after { content: ""; position: absolute; right: 26px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--s-muted); border-bottom: 2px solid var(--s-muted); transform: rotate(45deg); transition: transform .15s; }
.d-faq details[open] summary:after { transform: rotate(-135deg); top: 30px; }
.d-faq details p { padding: 0 24px 22px; color: var(--s-muted); margin: 0; }

/* ---------- 마지막 문의 ---------- */
.d-final { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; color: #A9C4CB; background: radial-gradient(600px 300px at 50% 0%, #0F6577 0%, transparent 70%), linear-gradient(180deg, var(--d-dark) 0%, var(--d-dark-2) 100%); }
.d-final h2 { color: #fff; font-size: 38px; letter-spacing: -.03em; }
.d-final p { margin-top: 12px; font-size: 18px; }
.d-final__phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 16px 28px 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.d-final__phone:hover { background: rgba(255, 255, 255, .1); text-decoration: none; color: #fff; }
.d-final__phone .d-float__icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #0EA5C6, #0E7490); color: #fff; }
.d-final__phone small { display: block; font-size: 14px; color: #8FB1B9; text-align: left; }
.d-final__phone b { display: block; font-size: 26px; letter-spacing: .01em; word-break: break-all; }

@media (max-width: 1100px) {
	.d-stage .d-shot--dark, .d-float { display: none; }
	.d-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.d-hero h1 { font-size: 38px; }
	.d-hero__desc { font-size: 17px; }
	.d-stats { grid-template-columns: repeat(2, 1fr); }
	.d-stats div:nth-child(2) { border-right: 0; }
	.d-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--s-line); }
	.d-pain, .d-sites, .d-sec, .d-gallery, .d-compare, .d-panel, .d-panel.is-active { grid-template-columns: 1fr; }
	.d-panel { gap: 28px; }
	.d-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.d-steps:before { display: none; }
	.d-final { padding: 48px 24px; }
	.d-final h2 { font-size: 28px; }
}
@media (max-width: 600px) {
	.d-hero .s-wrap { padding-top: 56px; }
	.d-hero h1 { font-size: 31px; }
	.d-features, .d-grid { grid-template-columns: 1fr; }
	.d-tabs button { padding: 10px 14px; font-size: 15px; }
	.d-panel h3 { font-size: 24px; }
	.d-final__phone b { font-size: 19px; }
	.d-shot__bar span { display: none; }
}
