/* =========================================================
   Dr.α (닥터알파) — Official Cosmetic Commerce & Magazine
   Single source of truth stylesheet
   Brand: Red #C21531 / Black #1C1C1B (brand guidebook)
   ========================================================= */

/* ---------- Fonts ---------- */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --red:        #C21531;
  --red-600:    #A81029;
  --red-700:    #8B0C21;
  --red-tint:   #FBEDEF;
  --red-tint-2: #F5DBE0;

  /* Ink / Text (warm neutral) */
  --ink:    #1C1C1B;
  --ink-2:  #37342F;
  --body:   #575049;
  --muted:  #928B83;

  /* Surfaces */
  --bg:      #FAF8F6;
  --bg-alt:  #F3EEE9;
  --surface: #FFFFFF;
  --border:  #ECE5DE;
  --border-2:#E3DAD1;

  /* Accents */
  --gold:   #B98A3E;
  --emerald:#0E9F6E;

  /* Shadows (soft, minimal borders) */
  --shadow-xs: 0 1px 3px 0 rgba(28,28,27,.05);
  --shadow-sm: 0 2px 8px -2px rgba(28,28,27,.08);
  --shadow:    0 12px 34px -14px rgba(28,28,27,.16);
  --shadow-lg: 0 30px 70px -26px rgba(28,28,27,.22);

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --gutter: clamp(20px, 5vw, 56px);

  /* Type */
  --sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.72;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.03em; line-height: 1.22; margin: 0; }
p { margin: 0; }
strong { font-weight: 700; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red-tint-2); color: var(--ink); }

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); }
.section--ink :is(h1,h2,h3,p,li) { color: #F4EFEA; }
/* 섹션 내 콘텐츠 블록 사이 기본 세로 리듬 (제목-본문/블록 간 여백 보장) */
.section > .container > * + * { margin-top: clamp(28px, 3vw, 42px); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Eyebrow / Section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }
.section-title {
  font-size: clamp(28px, 4vw, 46px); margin-top: 16px; letter-spacing: -0.035em;
}
.section-sub { margin-top: 18px; font-size: 18px; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg, .btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(194,21,49,.6); }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(194,21,49,.6); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); padding: 10px 4px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 17px 38px; font-size: 16.5px; }

/* Text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--red); font-size: 15.5px;
}
.tlink .arrow { transition: transform .25s var(--ease); }
.tlink:hover .arrow { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,246,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(255,255,255,.9); border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }
.site-header > .container { max-width: 1320px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 23px; color: var(--ink); letter-spacing: -0.04em; }
.brand .brand-a { color: var(--red); }
.brand small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .1em; margin-left: 6px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14.5px; color: var(--ink-2); white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu > li > a:hover, .nav-menu > li.is-active > a { color: var(--red); background: var(--red-tint); }
/* GNB 드롭다운 화살표(꺽쇠) 미표시 - 호버 시 메가 메뉴만 노출 */

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.nav-menu > li.has-mega:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content:""; position:absolute; top:-14px; left:0; right:0; height:16px; }
.dropdown a { display: block; padding: 11px 14px; border-radius: var(--r-xs); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .16s var(--ease), color .16s var(--ease); }
.dropdown a small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.dropdown a:hover { background: var(--red-tint); color: var(--red); }
.dropdown a:hover small { color: var(--red-600); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: transparent; border: none; color: var(--ink-2); transition: background .18s var(--ease); }
.icon-btn:hover { background: var(--red-tint); color: var(--red); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--red-tint) 0%, var(--bg) 66%); }
.hero::before { content: ""; position: absolute; top: -22%; right: -6%; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(194,21,49,.12), transparent 68%); pointer-events: none; }
.hero::after { content: ""; position: absolute; bottom: -34%; left: -12%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(185,138,62,.09), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(60px, 8vw, 108px); }
.hero-visual .img-ph { box-shadow: var(--shadow-lg); }
.hero-eyebrow { margin-bottom: 22px; }
.hero-title { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.045em; line-height: 1.08; }
.hero-title em { font-style: normal; color: var(--red); }
.hero-lead { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; color: var(--body); }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 8px; }
.hero-visual { position: relative; }

/* ---------- Trust / badge pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: var(--r-pill); background: var(--red-tint); color: var(--red-700); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.badge--soft { background: var(--bg-alt); color: var(--ink-2); }

/* ---------- Image placeholder ---------- */
.img-ph {
  position: relative; margin: 0; width: 100%;
  display: grid; place-content: center; place-items: center; gap: 12px; text-align: center;
  padding: 24px;
  background:
    radial-gradient(90% 80% at 18% 12%, rgba(255,255,255,.9) 0, transparent 60%),
    radial-gradient(80% 90% at 100% 100%, var(--red-tint) 0, transparent 55%),
    linear-gradient(135deg, #FBF3F1 0%, #F4ECE7 48%, #FBF1F2 100%);
  border-radius: var(--r);
  color: var(--muted); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), var(--shadow-xs);
}
.img-ph::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(28,28,27,.05) 1px, transparent 1px); background-size: 16px 16px; }
.img-ph__label { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  background: rgba(255,255,255,.75); padding: 6px 13px; border-radius: var(--r-pill); box-shadow: var(--shadow-xs); }
.img-ph__label::before { content: ""; width: 14px; height: 14px; background: var(--red); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 11l2.5 3 3.5-4.5L19 17H5z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 11l2.5 3 3.5-4.5L19 17H5z'/></svg>") center/contain no-repeat; }
.img-ph__desc { position: relative; max-width: 30ch; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.img-ph__size { position: relative; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); background: rgba(255,255,255,.85); padding: 4px 11px; border-radius: var(--r-pill); box-shadow: var(--shadow-xs); }
/* 실제 이미지 (placeholder 대체) - 원본 비율(인라인 aspect-ratio)로 글자 크롭 방지 */
.ph-img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-xs); background: #fff; }
.card .ph-img, .concern-card .ph-img, .post-card .ph-img, .review-card .ph-img { border-radius: 0; }
.mag-featured .ph-img { border-radius: var(--r); }
/* 카드 그리드 내부 이미지는 정사각 슬롯 + contain으로 글자 보존하며 정렬 통일 */
.concern-card .ph-img, .post-card .ph-img, .review-card .ph-img { aspect-ratio: 1 / 1 !important; object-fit: contain; background: linear-gradient(180deg,#fff,var(--bg-alt)); }
/* 풀폭 단독 배너 이미지는 과도한 세로 높이 방지(휑함 완화) */
.section > .container > .img-ph { max-height: 360px; }
.grid-split .img-ph { max-height: 460px; }
/* 실제 이미지(.ph-img)는 원본 비율 그대로 표시(크롭 없음).
   단독 풀폭 배치일 때만 '폭'을 제한해 과대 표시를 막고, 세로는 비율대로 자동. */
.section > .container > .ph-img,
.section > .container--narrow > .ph-img,
.section > .container > .reveal > .ph-img,
.section > .container--narrow > .reveal > .ph-img,
.prose > .ph-img,
.prose > .reveal > .ph-img { max-width: 560px; margin-left: auto; margin-right: auto; }
/* 2단(컬럼) 안 이미지는 원본 비율 그대로(크롭 없음) + 사진 비중을 낮추기 위해 폭을 제한해 컴팩트하게 */
.grid-split .ph-img, .grid-2 .ph-img { max-height: none; max-width: 380px; margin-left: auto; margin-right: auto; }
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-4-3  { aspect-ratio: 4 / 3; }
.ar-3-2  { aspect-ratio: 3 / 2; }
.ar-1-1  { aspect-ratio: 1 / 1; }
.ar-3-4  { aspect-ratio: 3 / 4; }
.ar-21-9 { aspect-ratio: 21 / 9; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
/* 그리드 아이템의 기본 min-width:auto 때문에 표(min-width:460px) 같은 콘텐츠가
   트랙을 넓혀 모바일 가로 스크롤이 생기는 문제(min-content blowout) 방지 */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-split > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }

/* ---------- Card ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-xs); border: 1px solid var(--border); overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-pad { padding: clamp(26px, 3vw, 40px); }
.card .img-ph { border: none; border-radius: 0; }

/* Feature card (numbered) */
.feature { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r); padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-xs); border: 1px solid var(--border); height: 100%; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.feature::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red), var(--red-700)); transform: scaleX(0); transform-origin: left; transition: transform .38s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature:hover::after { transform: scaleX(1); }
.feature__no { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--red); font-variant-numeric: tabular-nums; }
.feature__icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); margin-bottom: 22px; }
.feature h3 { font-size: 21px; margin-bottom: 12px; }
.feature p { font-size: 15.5px; }

/* Concern card */
.concern-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-xs); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.concern-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.concern-card__body h3 { transition: color .2s var(--ease); }
.concern-card:hover .concern-card__body h3 { color: var(--red); }
.concern-card .img-ph { border-radius: 0; border: none; }
.concern-card__body { padding: 28px clamp(24px,3vw,32px) 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.concern-card__body h3 { font-size: 20px; }
.concern-card__body p { font-size: 15px; flex: 1; }

/* ---------- Summary box (한눈에 보기) ---------- */
.summary {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--red); border-radius: var(--r-sm);
  padding: 24px 28px; box-shadow: var(--shadow-xs); font-size: 16px; color: var(--ink-2);
}
.summary__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-xs); }
.stat { background: var(--surface); padding: clamp(26px, 3vw, 40px) 24px; text-align: center; }
.stat__num { font-size: clamp(32px, 4vw, 50px); font-weight: 800; color: var(--red); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.section--ink .stat { background: #232320; }
.section--ink .stat__num { color: #fff; }
.section--ink .stat__label { color: rgba(244,239,234,.6); }

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); box-shadow: var(--shadow-xs); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
table.data thead th {
  text-align: left; padding: 18px 22px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); text-transform: uppercase; background: var(--bg-alt);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data thead th .sort { margin-left: 6px; opacity: .5; }
table.data tbody td { padding: 17px 22px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .16s var(--ease); }
table.data tbody tr:hover { background: var(--red-tint); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.data .hl { color: var(--red); font-weight: 700; }
.table-cap { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- Prose (article/long-form body) ---------- */
.prose { font-size: 17.5px; color: var(--body); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(23px, 2.7vw, 31px); margin-top: 58px; margin-bottom: 20px; letter-spacing: -0.035em; }
.prose h3 { font-size: 20px; margin-top: 42px; margin-bottom: 14px; }
.prose :is(h2, h3) + * { margin-top: 0; }
.prose h2:first-child, .prose h3:first-child, .prose .mt-0 { margin-top: 0; }
.prose p { line-height: 1.82; }
.prose ul, .prose ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 44px; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: 14px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.prose strong { color: var(--ink); }

/* Definition list style for feature bullets */
.deflist { display: grid; gap: 16px; margin: 0; }
.deflist .row { display: flex; gap: 16px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-xs); }
.deflist .row strong { flex: 0 0 auto; color: var(--red); min-width: 128px; }

/* ---------- Note / compliance ---------- */
.note { display: flex; gap: 12px; padding: 18px 22px; background: var(--bg-alt); border-radius: var(--r-sm); font-size: 14px; color: var(--muted); line-height: 1.6; }
.note::before { content: "ⓘ"; flex: 0 0 auto; color: var(--body); font-weight: 700; }

/* ---------- Quote / Review (photo review) ---------- */
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; height: 100%; transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card .img-ph { border-radius: 0; }
.review-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.review-card .stars { color: var(--red); letter-spacing: 3px; font-size: 15px; }
.review-card blockquote { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.72; flex: 1; }
.review-card figcaption { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.review-card figcaption .ava { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--red-tint); color: var(--red); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.review-card .verified { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--emerald); }
/* Inline single quote (no photo) for concern sections */
.quote-inline { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--r-sm); padding: 24px 28px; box-shadow: var(--shadow-xs); }
.quote-inline .stars { color: var(--red); letter-spacing: 3px; font-size: 14px; margin-bottom: 10px; }
.quote-inline blockquote { margin: 0; font-size: 16.5px; color: var(--ink-2); line-height: 1.7; font-weight: 500; }
.quote-inline figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Magazine / Blog ---------- */
.mag-featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 3vw, 44px); align-items: stretch; }
.mag-featured .img-ph { height: 100%; min-height: 320px; border-radius: var(--r); }
.mag-featured__body { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.mag-featured__body h2 { font-size: clamp(26px, 3.2vw, 40px); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 34px); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card:hover .post-card__title { color: var(--red); }
.post-card .img-ph { border: none; border-radius: 0; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.post-card__title { font-size: 19px; line-height: 1.35; color: var(--ink); transition: color .2s var(--ease); }
.post-card__excerpt { font-size: 14.5px; color: var(--body); flex: 1; }
.post-card__meta { font-size: 13px; color: var(--muted); padding-top: 6px; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.cat-tab { padding: 10px 20px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .2s var(--ease); }
.cat-tab:hover { border-color: var(--red); color: var(--red); }
.cat-tab.is-active { background: var(--red); color: #fff; border-color: var(--red); }

/* Article page */
.article-hero { padding-block: clamp(40px, 6vw, 76px) 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.article-title { font-size: clamp(30px, 4.4vw, 52px); margin: 20px 0 24px; letter-spacing: -0.04em; line-height: 1.14; }
.article-lead { font-size: 20px; color: var(--body); max-width: 40em; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; }
.timeline .tl-row { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.timeline .tl-row:last-child { border-bottom: none; }
.timeline .tl-year { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; font-size: 17px; }
.timeline .tl-body { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--red) 0%, var(--red-700) 100%); color: #fff; padding: clamp(44px, 6vw, 80px); text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 18px; }
.cta-band .btn { margin-top: 32px; }
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }

/* ---------- Price row ---------- */
.price-list { display: grid; gap: 10px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.price-row .name { font-weight: 600; color: var(--ink-2); }
.price-row .price { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; font-size: 18px; }
.price-row .price small { font-weight: 500; color: var(--muted); font-size: 13px; }

/* ---------- FAQ / Accordion ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-xs); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq .faq-body { padding: 0 26px 24px; color: var(--body); font-size: 15.5px; line-height: 1.75; }

/* ---------- Anchor sub-nav (product/detail pages) ---------- */
.subnav { position: sticky; top: 74px; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.subnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.subnav a { display: inline-block; padding: 16px 18px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.subnav a:hover, .subnav a.is-active { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumb a:hover { color: var(--red); }
.crumb span { color: var(--border-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244,239,234,.72); padding-block: clamp(56px, 6vw, 84px) 40px; margin-top: 20px; }
.site-footer a { color: rgba(244,239,234,.72); transition: color .18s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand .brand-a { color: var(--red); }
.footer-brand p { margin-top: 18px; font-size: 14px; max-width: 30em; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.footer-bottom { padding-top: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: rgba(244,239,234,.5); line-height: 1.9; }
/* 한글은 ch 단위보다 폭이 넓어 62ch에서 주소 줄이 끊김 - 우측 여백을 활용해 폭 확대 */
.footer-legal { max-width: min(660px, 100%); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Content is visible by default; only hidden once JS confirms it can animate it back in. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mag-featured { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-menu, .nav-actions .util-hide { display: none; }
  .nav-toggle { display: inline-grid; }
  .grid-2, .grid-3, .grid-split { grid-template-columns: 1fr; }
  .deflist .row { flex-direction: column; gap: 6px; }
  .deflist .row strong { min-width: 0; }
  .timeline .tl-row { grid-template-columns: 84px 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .grid-4, .stats, .post-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}

/* ---------- Mobile menu (JS toggled) ---------- */
.mobile-menu { position: fixed; inset: 74px 0 0; background: var(--surface); z-index: 90; padding: 24px var(--gutter); overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); }
.mobile-menu.open { transform: none; }
.mobile-menu > a, .mobile-menu > details > summary { display: block; padding: 16px 4px; font-size: 18px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-menu details summary { list-style: none; cursor: pointer; }
.mobile-menu details[open] summary { color: var(--red); }
.mobile-menu details .sub { padding: 4px 0 12px; display: grid; gap: 2px; }
.mobile-menu details .sub a { padding: 10px 4px; font-size: 15px; color: var(--body); }
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- References (참고 문헌) ---------- */
.refs-title { font-size: 20px; letter-spacing: -0.02em; margin: 10px 0 18px; }
.refs { list-style: decimal; margin: 0; padding-left: 20px; display: grid; gap: 9px;
        font-size: 13px; line-height: 1.65; color: var(--muted); }
.refs li { padding-left: 2px; }
.refs a { color: var(--body); text-decoration: underline; text-underline-offset: 2px; }
.refs a:hover { color: var(--red); }
.refs em { font-style: italic; }
.refs-note { margin-top: 18px; font-size: 12.5px; }
