/* 사이트픽 샘플 소개 페이지(/samples/p/<slug>/, /samples/c/<업종>/) — 자바스크립트 없이 읽히는 정적 화면.
 * 색·글꼴은 shop.css 와 같은 값. build_products.py(seo_pages.py) 가 만든 페이지가 함께 쓴다. */
:root {
  --brand: #123c36; --brand-2: #1c564c; --brand-soft: #e7f0ed;
  --accent: #f2b84b; --accent-soft: #fdf2da; --accent-ink: #5c3d00;
  --bg: #fff; --bg-2: #f6f4ef; --line: #e6e2da; --line-2: #d5d0c6;
  --ink: #161a19; --ink-2: #333836; --muted: #5e6462;
  --radius: 12px; --max: 1080px; --gutter: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 9; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* 머리말 */
.hd { border-bottom: 1px solid var(--line); background: #fff; }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.03em; }
.brand svg { width: 28px; height: 28px; }
.brand small { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 8px; border-left: 1px solid var(--line-2); }
.hd-link { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; padding: 10px 0; white-space: nowrap; }

.crumbs { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 13px; color: var(--muted); padding: 14px 0 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs li + li::before { content: "›"; padding-right: 6px; }

/* 첫 부분 */
.intro { display: grid; gap: 20px; padding: 8px 0 28px; }
.cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; background: var(--brand-soft); padding: 4px 10px; border-radius: 99px; }
h1 { font-size: clamp(25px, 6.4vw, 38px); line-height: 1.3; letter-spacing: -.035em; margin: 10px 0 8px; }
.sample-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.sample-note b { white-space: nowrap; }
.lead { font-size: 17px; color: var(--ink-2); }
.price { margin: 16px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price strong { font-size: 28px; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 14px; }
.price-sub { font-size: 14px; color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 22px; border-radius: 10px; border: 1.5px solid var(--brand); font-weight: 800; font-size: 16px; text-decoration: none; text-align: center; line-height: 1.25; }
.btn-primary { background: var(--brand); color: #fff; flex: 1 1 220px; }
.btn-primary:hover { background: var(--brand-2); }
.btn-line { background: #fff; color: var(--brand); flex: 1 1 160px; }
.btn-line:hover { background: var(--brand-soft); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.shots { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.shots figure:first-child { grid-column: 1 / -1; }
.shots img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); aspect-ratio: 16 / 10; object-fit: cover; }
.shots figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* 본문 구역 */
.sec { padding: 28px 0; border-top: 1px solid var(--line); }
.sec h2 { font-size: 21px; letter-spacing: -.03em; line-height: 1.35; margin-bottom: 6px; }
.sec .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.screens { counter-reset: s; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.screens li { counter-increment: s; display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--bg-2); border-radius: 10px; font-weight: 600; }
.screens li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12.5px; display: grid; place-items: center; }
.feats { display: grid; gap: 8px; margin-top: 12px; }
.feats li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.feats b { font-weight: 700; }
.feats span { color: var(--brand); font-weight: 800; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-2); }
td.num, th.num { text-align: right; white-space: nowrap; font-weight: 800; }
td small { display: block; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.info th { width: 34%; color: var(--muted); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.swatches span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.two { display: grid; gap: 24px; }

.steps { display: grid; gap: 10px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; }
.steps li::before { content: counter(st); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #3b2a00; font-weight: 800; display: grid; place-items: center; }
.steps b { font-weight: 800; }
.steps span { color: var(--ink-2); font-size: 15px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 14px; color: var(--ink-2); font-size: 15px; }

/* 카드 목록 */
.cards { display: grid; gap: 16px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.card .c-cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.card .c-title { font-weight: 800; font-size: 15px; line-height: 1.38; letter-spacing: -.02em; }
.card .c-brand { font-size: 13px; color: var(--muted); }
.card .c-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.card .c-price { font-weight: 800; font-size: 15px; }
.card a:hover .c-title { text-decoration: underline; }
.more { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--brand); }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-links a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; text-decoration: none; font-weight: 600; }
.cat-links a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-links a:hover { border-color: var(--brand); }
.page-intro { padding: 4px 0 24px; }
.page-intro .lead { max-width: 46em; }

.cta-end { background: var(--brand); color: #fff; border-radius: 16px; padding: 24px 20px; margin: 8px 0 32px; }
.cta-end h2 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 6px; }
.cta-end p { opacity: .88; font-size: 15px; }
.cta-end .btn-primary { background: var(--accent); color: #2a1d00; border-color: var(--accent); }
.cta-end .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* 휴대폰 아래 고정 버튼 (자바스크립트 없이) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.bar .btn { min-height: 48px; font-size: 15px; padding: 0 14px; }
.bar .btn-line { flex: 0 1 auto; }

.ft { background: var(--bg-2); border-top: 1px solid var(--line); padding: 28px 0; font-size: 13.5px; color: var(--muted); }
.ft p + p { margin-top: 6px; }
.ft nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.ft nav a { color: var(--ink-2); }
.ft b { color: var(--ink); }
.ft-biz span + span::before, .ft-biz b + span::before { content: "·"; padding: 0 6px; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
  .two { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ctas .btn-primary, .ctas .btn-line { flex: 0 1 auto; }
  .cta-end { padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
  .cta-end .ctas { margin-top: 0; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .intro { grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: start; padding-top: 16px; }
  .cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) { .card img { transition: transform .3s ease; } .card a:hover img { transform: translateY(-2px); } }
