/* 도메인별 사이트 공통 스타일. 색·글꼴·모서리는 각 페이지 <style>의 변수로, 화면 구성은 body 클래스(h-*, l-*, hd-*)로 달라짐.
   반짝임·빛 번짐·그라데이션 없이 평평한 면과 색만 씀. */
:root { --m: clamp(16px, 4vw, 40px); --max: 1200px; --line: color-mix(in srgb, var(--ink) 12%, transparent); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .logo b, .f-logo { font-family: var(--font-head); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 머리글 */
.notice { background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; padding: 7px var(--m); }
.head { position: sticky; top: 0; z-index: 30; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; flex: none; }
.logo b { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.logo span { font-size: 13px; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; color: var(--muted); border-radius: var(--r); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.head-kakao { flex: none; background: #fee500; color: #191919; font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: var(--r); text-decoration: none; }
.head-kakao:hover { filter: brightness(.95); }
/* 로고 가운데형 */
.hd-center .head-in { flex-wrap: wrap; justify-content: center; padding-block: 14px 0; gap: 4px 24px; }
.hd-center .logo { flex-direction: column; align-items: center; gap: 0; width: 100%; }
.hd-center .logo b { font-size: 30px; }
.hd-center .nav { flex: none; justify-content: center; width: 100%; padding-block: 6px; }
.hd-center .head-kakao { position: absolute; right: var(--m); top: 16px; }
.hd-center .head { position: sticky; }
.hd-center .head-in { position: relative; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 50px; padding: 0 24px; border-radius: var(--r); font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; transition: filter .15s, background-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 14px; font-size: 15px; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { filter: brightness(.92); }
.btn-sub { background: var(--surface-2); color: var(--ink); }
.btn-sub:hover { filter: brightness(.95); }
.dark .btn-sub:hover { filter: brightness(1.2); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: color-mix(in srgb, currentColor 8%, transparent); }

/* 첫 화면 공통 */
.hero { position: relative; isolation: isolate; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); font-weight: 900; line-height: 1.15; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); max-width: 34em; opacity: .9; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.checks li { font-size: 15px; font-weight: 600; }
.checks li::before { content: "✓ "; color: var(--accent); font-weight: 900; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-hot { margin-top: 18px; font-size: 15px; opacity: .85; }

/* center: 사진 배경 위 가운데 정렬 */
.h-center .hero { min-height: min(620px, 78svh); display: flex; align-items: center; color: #fff; }
.h-center .hero-media { position: absolute; inset: 0; z-index: -1; }
.h-center .hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.38); }
.h-center .hero-in { width: 100%; padding-block: 64px 104px; text-align: center; }
.h-center .hero-text { display: flex; flex-direction: column; align-items: center; }
.h-center .checks, .h-center .hero .acts { justify-content: center; }
.h-center .hero h1 em { color: var(--accent); }

/* split / split-r: 글과 사진 나란히 */
.h-split .hero-in, .h-split-r .hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.h-split-r .hero-media { order: -1; }
.h-split .hero-media img, .h-split-r .hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); filter: grayscale(.25); }

/* banner: 사진 띠 + 아래 글 */
.h-banner .hero-media img { width: 100%; height: clamp(180px, 26vw, 320px); object-fit: cover; filter: grayscale(.3) brightness(.8); }
.h-banner .hero-in { padding-block: 40px 16px; }
.h-banner .hero-text { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); margin-top: -96px; position: relative; }

/* plain: 사진 없이 큰 글 + 분류별 시작 가격 */
.h-plain .hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding-block: clamp(48px, 7vw, 96px) 24px; }
.h-plain .hero h1 { font-size: clamp(38px, 6.4vw, 76px); }
.hero-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hero-prices a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; background: var(--surface); border-radius: var(--r); text-decoration: none; font-weight: 700; transition: background-color .15s; }
.hero-prices a:hover { background: var(--surface-2); }
.hero-prices b { font-size: 20px; font-variant-numeric: tabular-nums; }

/* 분류 바로가기 */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 24px; }
.h-center .quick { margin-top: -44px; position: relative; z-index: 2; }
.h-plain .quick { display: none; }
.quick a { display: block; text-decoration: none; padding: 16px 18px; background: var(--surface); border-radius: var(--r); transition: background-color .15s; }
.quick a:hover { background: var(--surface-2); }
.q-name { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.q-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.q-price { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.q-price b { color: var(--ink); font-size: 16px; }

/* 섹션 */
.sec { padding-block: 72px 0; }
.sec-head { margin-bottom: 24px; max-width: 760px; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.25; }
.sec-head p { margin-top: 8px; color: var(--muted); }
.sec-head .uses { display: block; margin-top: 2px; font-weight: 600; }

/* 상품: 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, background-color .15s; }
.card:hover { transform: translateY(-3px); background: var(--surface-2); }
.thumb { position: relative; aspect-ratio: 16 / 9; padding: 16px; color: #fff; background: var(--c); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }
.t-tier { font-size: 13px; font-weight: 700; background: rgba(0,0,0,.22); padding: 2px 9px; border-radius: 4px; width: fit-content; }
.t-cpu { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.t-sub { display: block; font-size: 14px; font-weight: 600; opacity: .9; margin-top: 2px; }
.t-won { position: absolute; right: 14px; bottom: 14px; font-weight: 900; font-size: 16px; padding: 3px 10px; border-radius: 4px; color: #111; background: #fff; }
.badge { display: inline-block; vertical-align: 2px; margin-left: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 4px; }
.thumb .badge { position: absolute; right: 14px; top: 14px; margin: 0; background: #fff; color: #111; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 17px; font-weight: 800; }
.card h3 a { text-decoration: none; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.note, .pr-note, .c-name small { color: var(--accent); font-size: 13px; font-weight: 700; }
.dark .note, .dark .pr-note, .dark .c-name small { color: var(--accent); }
.price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 14px; }
.card-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.copied { font-size: 13px; font-weight: 700; color: var(--accent); min-height: 0; }
.copied:empty { display: none; }

/* 상품: 표 */
.tbl-wrap { background: var(--surface); border-radius: var(--r); overflow: hidden; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); padding: 12px 16px; background: var(--surface-2); }
.ptable td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.ptable tbody tr { transition: background-color .15s; }
.ptable tbody tr:hover { background: var(--surface-2); }
.c-name a { font-weight: 800; text-decoration: none; }
.c-name a:hover { text-decoration: underline; }
.c-name small { display: block; margin-top: 2px; }
.c-spec { color: var(--muted); }
.c-price { white-space: nowrap; }
.c-price b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.c-price span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.c-act { width: 1%; }

/* 상품: 줄 목록 */
.prows { list-style: none; margin: 0; padding: 0; }
.prows li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 28px; align-items: center; padding: 18px 4px; border-top: 1px solid var(--line); transition: background-color .15s; }
.prows li:last-child { border-bottom: 1px solid var(--line); }
.prows li:hover { background: var(--surface); }
.pr-name { font-weight: 800; font-size: 17px; text-decoration: none; }
.pr-name:hover { text-decoration: underline; }
.pr-spec { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.pr-note { display: block; margin-top: 2px; }
.pr-price { text-align: right; white-space: nowrap; }
.pr-price b { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pr-price span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.pr-acts { display: flex; gap: 6px; }

/* 공통 안내 */
.common { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 56px; }
.common div { background: var(--surface); border-radius: var(--r); padding: 18px; }
.common b { display: block; font-size: 17px; }
.common small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* 글 영역 */
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feat div { background: var(--surface); border-radius: var(--r); padding: 22px; }
.feat h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.feat p { color: var(--muted); }
.guide { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.guide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); filter: grayscale(.3); }
.guide-body { display: grid; gap: 14px; font-size: 17px; }

/* 이용 방법 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--r); padding: 22px 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 15px; margin-bottom: 12px; }
.steps b { display: block; font-size: 17px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }

/* 질문 */
.faq-list { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 18px 2px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 2px 18px; color: var(--muted); }

/* 상담 띠 */
.cta { margin-top: 88px; background: var(--accent); color: var(--accent-ink); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 44px; }
.cta h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; }
.cta p { margin-top: 4px; opacity: .85; }
.btn-cta { background: #fee500; color: #191919; }
.btn-cta:hover { filter: brightness(.95); }

/* 상품 상세 */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; padding-block: 40px 0; }
.detail .thumb { aspect-ratio: 4 / 3; border-radius: var(--r); padding: 28px; }
.detail .t-cpu { font-size: clamp(32px, 4vw, 50px); }
.detail .t-won { font-size: 22px; right: 22px; bottom: 22px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.detail h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.detail .specs { font-size: 16px; gap: 10px 20px; margin-top: 20px; padding: 20px; background: var(--surface); border-radius: var(--r); }
.detail .note { margin-top: 12px; }
.detail .price { margin-top: 20px; }
.detail .price b { font-size: 36px; }
.detail .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.detail .copied { margin-top: 10px; }
.detail-note { margin-top: 16px; color: var(--muted); }

/* 바닥 */
.foot { margin-top: 0; background: var(--surface); color: var(--muted); padding-block: 44px 100px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.f-logo { font-size: 24px; font-weight: 900; color: var(--ink); }
.foot p { margin-top: 8px; line-height: 1.8; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.f-links a { color: var(--ink); }
.credits { font-size: 13px; }

.kakao-fixed { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: #fee500; color: #191919; font-weight: 800; padding: 14px 20px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* 문서 */
.doc { background: var(--surface); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); margin-top: 40px; }
.doc h1 { font-size: 28px; font-weight: 900; margin-bottom: 16px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--surface-2); vertical-align: top; }
.doc th { width: 130px; font-weight: 700; white-space: nowrap; }
.doc td { color: var(--muted); }

/* 등장 움직임 (짧게) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* 반응형 */
@media (max-width: 960px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .common, .steps { grid-template-columns: repeat(2, 1fr); }
  .h-split .hero-in, .h-split-r .hero-in, .h-plain .hero-in, .guide, .detail, .foot-in { grid-template-columns: 1fr; }
  .h-split-r .hero-media { order: 0; }
  .prows li { grid-template-columns: 1fr auto; }
  .pr-acts { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .head-in { flex-wrap: wrap; gap: 6px 12px; padding-block: 10px; min-height: 0; }
  .nav { order: 3; flex-basis: 100%; margin-inline: calc(var(--m) * -1); padding-inline: var(--m); }
  .head-kakao { margin-left: auto; }
  .hd-center .head-in { padding-top: 10px; }
  .hd-center .logo { align-items: flex-start; width: auto; }
  .hd-center .logo b { font-size: 24px; }
  .hd-center .head-kakao { position: static; }
  .hd-center .nav { justify-content: flex-start; }
  .h-center .hero { min-height: 0; }
  .h-center .hero-in { padding-block: 44px 84px; }
  .h-banner .hero-text { margin-top: -56px; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick a:last-child { grid-column: span 2; }
  .grid, .feat { grid-template-columns: 1fr; }
  .thumb { aspect-ratio: 5 / 2; }
  .steps { grid-template-columns: 1fr; }
  /* 표 → 한 줄씩 쌓기 */
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; width: auto; }
  .ptable tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .ptable tbody tr:first-child { border-top: 0; }
  .ptable td { padding: 0; border: 0; }
  .c-spec { margin-top: 4px; font-size: 14px; }
  .c-price { margin-top: 8px; }
  .c-act { margin-top: 10px; }
  .c-act .btn { width: 100%; }
  .pr-acts .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
