/* 휴대폰(375px 안팎)이 기준. 넓은 화면은 맨 아래 @media에서만 늘린다. */
:root {
  /* 전체 색감: 아주 연한 하늘색(사용자 2026-11-10) */
  --bg: #f1f8fd;
  --surface: #ffffff;
  --ink: #1d2c3a;
  --muted: #5b6c7c;
  --line: #d7e8f4;
  --accent: #2f73b4;
  --accent-ink: #ffffff;
  --soft: #e3f1fb;
  --sky: #cfe6f7;
  --good: #2f6f4f;
  --good-bg: #e4f1e9;
  --limited: #7a5b12;
  --limited-bg: #f6edd3;
  --caution: #9a3b2c;
  --caution-bg: #f8e1dc;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
body.has-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }

/* 머리말 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.logo { font: 600 18px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; font-variant-ligatures: none; }
.nav { display: flex; gap: 4px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 8px; }
.nav a:hover { color: var(--ink); }

/* 글자 */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 10px; }
h1 { font-size: 30px; }
h2 { font-size: 22px; margin-top: 32px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.lede { font-size: 17px; color: var(--muted); max-width: 620px; }
.fineprint { font-size: 13px; color: var(--muted); }

/* 버튼: 손가락으로 누르기 쉬운 높이(48px) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { display: flex; width: 100%; }

/* 홈 */
.hero { padding: 40px 0 36px; }
.hero .actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.section { padding: 36px 0; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .tag { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 3px 10px; }
.principles { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 16px; }
.principles h3 { font-size: 17px; }
.principles p { color: var(--muted); font-size: 15px; }

/* 일반 페이지 */
.page { padding: 28px 0 48px; }
.page ul { padding-left: 20px; margin: 0 0 14px; }
.updated { color: var(--muted); font-size: 14px; }

/* 제품 목록 */
.product-list { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 20px 0 12px; }
.product-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; color: inherit; text-decoration: none; }
.product-card .thumb { flex: 0 0 84px; height: 108px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 12px; padding: 8px; }
.product-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.product-card h3 { font-size: 17px; margin: 2px 0 4px; }
.brand { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rating { font-size: 14px; }
.rating .star { color: #c98a1b; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; border-radius: 999px; padding: 3px 9px; }
.chip.good { background: var(--good-bg); color: var(--good); }

/* 제품 페이지 */
.back { display: inline-block; font-size: 14px; text-decoration: none; color: var(--muted); padding: 6px 0 14px; }
.product-hero { background: var(--soft); border-radius: 20px; height: 300px; display: flex; align-items: center; justify-content: center; padding: 20px; margin-bottom: 18px; }
.product-hero img { max-height: 100%; width: auto; object-fit: contain; }
.product h1 { font-size: 27px; margin-top: 4px; }
.relation { font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 8px 12px; display: inline-block; }
.ingredient-notes { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.ingredient-notes li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 12px; padding: 12px 14px; }
.ingredient-notes.limited li { border-left-color: #c9a227; }
.ingredient-notes.caution li { border-left-color: var(--caution); }
.ingredient-notes p { font-size: 15px; color: var(--muted); margin: 4px 0 6px; }
.source { display: inline-block; font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.inci { font-size: 14px; line-height: 2; color: var(--muted); }
.mark { border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.mark.good { background: var(--good-bg); color: var(--good); font-weight: 600; }
.mark.limited { background: var(--limited-bg); color: var(--limited); }
.mark.caution { background: var(--caution-bg); color: var(--caution); font-weight: 600; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(241, 248, 253, 0.96); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.buy-bar .btn { max-width: 680px; margin: 0 auto; }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.disclosure-line { max-width: 560px; margin: 0; }

/* 홈: Best Routine */
.best-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; color: inherit; text-decoration: none; margin: 6px 0 28px; box-shadow: 0 10px 30px rgba(47, 115, 180, 0.08); }
.best-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sky); margin-bottom: 14px; }
.best-card h2 { margin: 4px 0 8px; font-size: 26px; }
.best-card p { color: var(--muted); }
.best-concern { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--soft); border-radius: 999px; padding: 4px 10px; }
.routine-list { display: grid; gap: 12px; margin-top: 14px; }
.routine-tile { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: inherit; text-decoration: none; }
.routine-tile img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; }
.routine-tile h3 { margin: 2px 0 4px; font-size: 18px; }
.routine-tile p { margin: 0; font-size: 14px; color: var(--muted); }

/* 루틴 장: 휴대폰 한 화면(9:16). 글자는 장 너비 기준(cqw)이라 저장 이미지와 같다. */
.routine h1 { font-size: 28px; }
.rc-list { display: grid; gap: 28px; margin: 18px 0 8px; }
.rc-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rc { container-type: inline-size; width: 100%; max-width: 420px; aspect-ratio: 9 / 16; overflow: hidden; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, #f7fbfe 0%, #e6f2fb 100%); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(47, 115, 180, 0.10); padding: 6cqw 6.5cqw 5cqw; }
.rc-top { display: flex; justify-content: space-between; font-size: 3cqw; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.rc-main { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.rc-foot { font-size: 3cqw; color: var(--muted); text-align: center; letter-spacing: 0.04em; }
.rc-hero { display: flex; gap: 4cqw; align-items: center; margin-bottom: 3cqw; }
.rc-hero img { width: 20cqw; height: 20cqw; border-radius: 50%; object-fit: cover; border: 0.9cqw solid #fff; box-shadow: 0 0 0 0.5cqw var(--sky); flex: 0 0 auto; }
.rc-who { font-size: 3.3cqw; color: var(--muted); }
.rc .rc-title { font: 600 7.6cqw/1.12 var(--serif); margin: 0.8cqw 0 2.4cqw; letter-spacing: -0.01em; color: var(--ink); }
.rc-hero .rc-title { margin-bottom: 0; }
.rc-intro { font-size: 3.7cqw; line-height: 1.45; color: var(--muted); margin: 0 0 3.6cqw; }
.rc-when { font-size: 3.1cqw; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 1.4cqw 0 1.6cqw; }
.rc-steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 0 0 2.6cqw !important; display: grid; gap: 2cqw; }
.rc-steps li { counter-increment: step; display: grid; grid-template-columns: 7cqw 1fr; column-gap: 2.6cqw; background: rgba(255, 255, 255, 0.85); border-radius: 3.2cqw; padding: 2.4cqw 3cqw; }
.rc-steps li::before { content: counter(step); grid-row: span 2; width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--sky); color: var(--accent); font-weight: 600; font-size: 3.6cqw; display: flex; align-items: center; justify-content: center; }
.rc-steps b, .rc-items b { font-size: 3.9cqw; line-height: 1.3; color: var(--ink); }
.rc-steps span, .rc-items span { font-size: 3.4cqw; line-height: 1.4; color: var(--muted); }
.rc-items { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 2.6cqw; }
.rc-items li { display: flex; flex-direction: column; gap: 0.6cqw; background: rgba(255, 255, 255, 0.85); border-radius: 3.2cqw; padding: 3cqw 3.6cqw; border-left: 1cqw solid var(--sky); }
.rc-src { font-size: 2.9cqw; color: var(--accent); text-decoration: none; margin-top: 0.4cqw; }
.save { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
body.card-only { margin: 0; background: #e6f2fb; }
body.card-only .rc { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }

/* 루틴 아래 베스트 픽 */
.picks { margin-top: 36px; }
.pick-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; margin-top: 14px; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.pick-step { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.pick-row { display: flex; gap: 14px; align-items: center; }
.pick-thumb { flex: 0 0 76px; height: 96px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 12px; padding: 8px; }
.pick-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.pick h3 { font-size: 17px; margin: 2px 0 4px; }
.pick-why { margin: 14px 0 12px; font-size: 15px; }
.pick-why span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.pick-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.text-link { text-align: center; font-size: 14px; color: var(--muted); padding: 6px 0; }

/* 넓은 화면 */
@media (min-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding: 0 24px; }
  .logo { font-size: 20px; }
  h1 { font-size: 48px; }
  h2 { font-size: 28px; margin-top: 40px; }
  .hero { padding: 72px 0 56px; }
  .hero .actions { flex-direction: row; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .product-list { grid-template-columns: repeat(2, 1fr); }
  .product h1 { font-size: 36px; }
  .product-hero { height: 380px; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; }
}
