/* ==========================================================
   PHOTODOCTOR v3 — light / editorial / mobile-first
   ========================================================== */
:root {
  --ink: #0b0c10;
  --ink-2: #2a2d35;
  --muted: #666b78;
  --faint: #6f7480;
  --line: #e6e8ec;
  --surface: #f4f5f7;
  --surface-2: #eceef2;
  --bg: #ffffff;
  --navy: #001e36;
  --navy-2: #0a3358;
  --accent: #001e36;
  --accent-ink: #001e36;
  --accent-soft: #eef1f5;
  --ok: #001e36;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --pad: 20px;
  --max: 1080px;
  --header-h: 60px;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hd__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--navy); }
.brand__icon { width: 40px; height: 40px; border-radius: 10px; }
.brand img { height: 34px; width: auto; border-radius: 6px; }
.brand__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.brand__mark svg { width: 15px; height: 15px; }
.hd__nav { display: none; gap: 24px; font-size: 16px; color: var(--muted); }
.hd__nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 16px 24px; font-size: 17px; font-weight: 700; white-space: nowrap;
  background: var(--navy); color: #fff; transition: transform .12s, background .2s, opacity .2s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: scale(.985); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--accent { background: var(--navy); }
.btn--accent:hover { background: var(--navy-2); }
.btn--light { background: var(--accent-soft); color: var(--navy); }
.btn--light:hover { background: #e2e6ec; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link { font-weight: 700; font-size: 17px; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 1px; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 36px) 0 0; }
.kicker { font-size: 15px; font-weight: 700; color: var(--accent-ink); letter-spacing: .01em; }
.hero h1 { font-size: 38px; line-height: 1.2; letter-spacing: -.035em; font-weight: 800; margin-top: 10px; }
.hero h1 .thin { font-weight: 500; color: var(--muted); }
.hero__sub { margin-top: 14px; font-size: 17.5px; color: var(--muted); line-height: 1.65; }
.hero__cta { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero__cta .btn { width: 100%; }
.hero__proof { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.hero__proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof svg { width: 15px; height: 15px; color: var(--ok); }

/* ---------- Before/After slider ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: relative; aspect-ratio: var(--ratio, 3 / 4); }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__before img { width: 100%; height: 100%; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c10' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6 3 12l6 6M15 6l6 6-6 6'/></svg>") center / 20px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.ba__lbl {
  position: absolute; bottom: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; padding: 5px 9px; border-radius: 6px;
  background: rgba(11, 12, 16, .72); color: #fff; backdrop-filter: blur(4px);
}
.ba__lbl--b { left: 12px; } .ba__lbl--a { right: 12px; background: var(--accent-ink); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.hero__visual { margin-top: 28px; }
.ba--hero { max-width: 420px; margin: 0 auto; }
.hero__hint { margin-top: 10px; font-size: 14px; color: var(--faint); text-align: center; }

/* ---------- Stats strip ---------- */
.strip { margin-top: 40px; background: var(--navy); color: #fff; padding: 24px 0; }
.strip__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; text-align: center; }
.strip__num { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.strip__num small { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.7); margin-left: 2px; }
.strip__lbl { font-size: 14.5px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- Section ---------- */
.sec { padding: 64px 0 0; }
.sec__kicker { font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.sec__title { font-size: 29px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin-top: 8px; }
.sec__desc { color: var(--muted); font-size: 17px; margin-top: 10px; }

/* ---------- Service list (editorial rows) ---------- */
.rows { margin-top: 22px; border-top: 2px solid var(--navy); }
.row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row__n { font-size: 14px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.row h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.row p { font-size: 15.5px; color: var(--muted); margin-top: 3px; }
.row__tag { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }

/* ---------- Cases ---------- */
.cases { margin-top: 22px; display: grid; gap: 22px; }
.case--wide { grid-column: 1 / -1; }
.case figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; }
.case figcaption h3 { font-size: 17.5px; font-weight: 800; }
.case figcaption span { font-size: 14.5px; color: var(--faint); white-space: nowrap; }
.thumbs { display: none; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 22px; }
.thumbs.is-open { display: grid; }
.thumbs .g { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.thumbs .g img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cases-more { margin-top: 14px; }

/* ---------- Why (two cards) ---------- */
.why { margin-top: 22px; display: grid; gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); padding: 22px 20px; }
.card--ink { background: var(--navy); color: #fff; }
.card__eyebrow { font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.card--ink .card__eyebrow { color: rgba(255,255,255,.75); }
.card h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; line-height: 1.3; }
.card p { font-size: 16px; color: var(--muted); margin-top: 8px; }
.card--ink p { color: rgba(255,255,255,.8); }
.card ul { margin-top: 14px; display: grid; gap: 8px; }
.card li { display: flex; gap: 9px; align-items: flex-start; font-size: 16px; }
.card li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--ok); }
.card--ink li svg { color: #fff; }
.nope { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--muted); }
.nope b { color: var(--ink); }

/* ---------- Process ---------- */
.proc { margin-top: 22px; display: grid; gap: 0; counter-reset: s; }
.proc li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.proc li::before {
  counter-increment: s; content: "0" counter(s); font-size: 15px; font-weight: 800; color: var(--faint); padding-top: 3px; font-variant-numeric: tabular-nums;
}
.proc h3 { font-size: 18.5px; font-weight: 800; }
.proc p { font-size: 15.5px; color: var(--muted); margin-top: 3px; }
.proc li.is-key h3 { color: var(--accent-ink); }
.proc .chip { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--accent-soft); padding: 4px 9px; border-radius: 6px; }

/* ---------- Price ---------- */
.price { margin-top: 22px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 26px 22px; }
.price__lbl { font-size: 15px; color: rgba(255,255,255,.75); font-weight: 700; }
.price__num { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 8px; }
.price__num small { font-size: 20px; font-weight: 700; color: rgba(255,255,255,.7); margin-left: 4px; letter-spacing: 0; }
.price__desc { font-size: 16px; color: rgba(255,255,255,.8); margin-top: 12px; }
.price ul { margin-top: 16px; display: grid; gap: 8px; }
.price li { display: flex; gap: 9px; font-size: 16px; }
.price li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: #fff; }
.price .btn { margin-top: 20px; background: #fff; color: var(--navy); }
.price .btn:hover { background: #eee; }

/* ---------- Partners ---------- */
.partners { margin-top: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners__track { display: flex; gap: 34px; width: max-content; animation: mq 40s linear infinite; align-items: center; }
.partners:hover .partners__track { animation-play-state: paused; }
.partners__track img { height: 44px; width: auto; opacity: .55; filter: grayscale(1); }
.partners--strip { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.partners--strip .partners__track img { filter: invert(1) grayscale(1) brightness(1.4); opacity: .85; height: 56px; }
.partners--strip .partners__track { gap: 56px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { margin-top: 18px; border-top: 2px solid var(--navy); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item--more { display: none; }
.faq.is-open .faq__item--more { display: block; }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-size: 17.5px; font-weight: 700; }
.faq__q::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--faint); transition: transform .2s; }
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 0 18px; font-size: 16.5px; color: var(--muted); line-height: 1.7; }
.faq__item.is-open .faq__a { display: block; }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- Final ---------- */
.final { margin-top: 64px; background: var(--surface); padding: 48px 0; }
.final h2 { font-size: 29px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.final p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.final .btn { margin-top: 20px; width: 100%; }

/* ---------- About (SEO text) ---------- */
.about { padding: 22px 0 8px; border-top: 1px solid var(--line); }
.about__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.about__title::-webkit-details-marker { display: none; }
.about__title h2 { font-size: 17px; font-weight: 800; color: var(--ink-2); margin: 0; }
.about__chev { width: 22px; height: 22px; color: var(--muted); flex: none; transition: transform .2s; }
.about__chev svg { width: 100%; height: 100%; }
.about__box[open] .about__chev { transform: rotate(180deg); }
.about p { font-size: 14.5px; line-height: 1.75; color: var(--muted); margin-top: 6px; }
.about p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.ft { padding: 28px 0; font-size: 14px; color: var(--faint); }
.ft__links { display: flex; gap: 16px; margin-top: 8px; }
.ft__links a { color: var(--muted); }
.ft p + p { margin-top: 6px; }

/* ---------- Sticky bar / fab ---------- */
.sticky { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.sticky .btn { width: 100%; padding: 16px; font-size: 18px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--navy) !important; color: #fff; font-size: 12px; font-weight: 800; display: none; align-items: center; justify-content: center; }
.badge.is-on { display: inline-flex; }
.fab { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11, 12, 16, .95); display: none; align-items: center; justify-content: center; padding: 12px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; }
.lightbox__prev { left: 10px; } .lightbox__next { right: 10px; }
.lightbox__close { position: absolute; top: 10px; right: 14px; color: #fff; font-size: 32px; line-height: 1; }
.lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #aaa; font-size: 13px; }

/* ---------- Guide page ---------- */
.doc { padding: calc(var(--header-h) + 36px) 0 40px; }
.doc h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.doc .lead { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.doc__card { background: var(--surface); border-radius: var(--r); padding: 22px 20px; margin-top: 16px; }
.doc__card h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.doc__card h3 { font-size: 14.5px; font-weight: 800; margin: 14px 0 6px; }
.doc__card p, .doc__card li { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.doc__card ol { list-style: decimal; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Desktop ---------- */
@media (min-width: 780px) {
  :root { --header-h: 68px; --pad: 32px; }
  body { padding-bottom: 0; }
  .hd__nav { display: flex; }
  .hero { padding-top: calc(var(--header-h) + 72px); }
  .hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: 54px; }
  .hero__sub { font-size: 19px; max-width: 480px; }
  .hero__cta { flex-direction: row; align-items: center; }
  .hero__cta .btn { width: auto; }
  .hero__visual { margin-top: 0; }
  .strip { margin-top: 72px; padding: 30px 0; }
  .strip__grid { grid-template-columns: repeat(4, 1fr); }
  .strip__num { font-size: 38px; }
  .sec { padding-top: 96px; }
  .sec__title { font-size: 38px; }
  .sec__head { max-width: 640px; }
  .rows { margin-top: 30px; }
  .row { grid-template-columns: 48px 1fr auto; padding: 22px 0; }
  .row h3 { font-size: 21px; }
  .cases { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; grid-auto-flow: dense; }
  .case--wide { grid-column: span 2; }
  .cases { align-items: start; }
  .hero__visual .ba--hero { max-width: 100%; }
  .thumbs { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .cases-more { display: flex; justify-content: center; }
  .cases-more .btn { width: auto; }
  .why { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
  .card { padding: 30px 28px; }
  .card h3 { font-size: 26px; }
  .proc { grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 30px; }
  .proc li { grid-template-columns: 1fr; padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px; }
  .price { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 40px; margin-top: 30px; }
  .price__num { font-size: 60px; }
  .price ul { margin-top: 0; }
  .price .btn { margin-top: 18px; }
  .partners__track img { height: 56px; }
  .partners--strip .partners__track img { height: 84px; }
  .partners--strip .partners__track { gap: 80px; }
  .final { margin-top: 96px; padding: 72px 0; }
  .final h2 { font-size: 38px; }
  .final .btn { width: auto; }
  .sticky { display: none; }
  .fab { display: inline-flex; position: fixed; right: 24px; bottom: 24px; z-index: 90; padding: 14px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
  .doc { padding-top: calc(var(--header-h) + 60px); }
  .doc h1 { font-size: 36px; }
}
