/* ─────────────────────────────────────────────────────────────
   약국 제안서 전용 스타일 (pharmacy.html)
   다른 8개 제안서(deck.css · 좌우 슬라이드)와 달리 휴대폰에서 세로로 읽는 한 장짜리 화면이다.
   deck.css 는 건드리지 않는다 — 서비스 워커가 CSS 를 주소째 저장하므로, 이 파일을 고치면 pharmacy.html 의 ?v= 를 올린다.
   색: 흰 바탕 + 짙은 초록, 빨강은 '약' 표시 한 곳에만 쓴다(넓게 쓰면 경고처럼 보인다).
   ───────────────────────────────────────────────────────────── */
:root {
  --ink: #1A2B22;
  --muted: #55635B;
  --bg: #FFFFFF;
  --tint: #EEF6F0;
  --tint-2: #DCEBE1;
  --line: rgba(26, 43, 34, .13);
  --green: #0B6B3A;
  --green-deep: #084F2B;
  --red: #C62828;
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --fs-body: clamp(17px, 1.5vw, 19px);
  --fs-small: clamp(14.5px, 1.2vw, 16px);
  --fs-h1: clamp(32px, 9.6vw, 62px);
  --fs-h2: clamp(27px, 6.2vw, 46px);
  --fs-h3: clamp(18px, 1.7vw, 21px);
  --radius: 20px;
  --bar-h: 68px;
  --side: max(20px, env(safe-area-inset-left, 0px));
  --side-r: max(20px, env(safe-area-inset-right, 0px));
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.pharm {
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
strong { font-weight: 700; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ── 구역 공통 ── */
.sec { padding-block: clamp(56px, 9vw, 112px); }
.sec.tinted { background: var(--tint); }
.in { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: var(--side); padding-right: var(--side-r); display: flex; flex-direction: column; gap: clamp(22px, 3.4vw, 36px); }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.eyebrow { font-size: 14.5px; font-weight: 700; letter-spacing: .02em; color: var(--green); } /* 한글은 고정폭 글꼴에서 낱말 사이가 벌어져 본문 글꼴을 쓴다 */
.h1 { font-size: var(--fs-h1); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-weight: 900; line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.em { color: var(--green); }
.nb { white-space: nowrap; }
.lead { font-size: clamp(17.5px, 1.7vw, 21px); color: var(--muted); max-width: 640px; text-wrap: pretty; }
.note { font-size: var(--fs-small); color: var(--muted); }
.note a { text-underline-offset: 3px; }

/* ── 맨 위: 로고 줄 + 읽은 만큼 차는 줄 ── */
.readbar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.readbar i { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top > a { display: inline-flex; align-items: center; min-height: 44px; }
.top img { height: 16px; width: auto; }
.top a.list { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding-left: 10px; }
.top a.list:hover { color: var(--green); }

/* ── 첫 화면 ── */
.hero { padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: clamp(40px, 7vw, 88px); background: var(--tint); }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-kick { display: flex; align-items: center; gap: 12px; }
.yak { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--red); color: #fff; font-size: 22px; font-weight: 900; line-height: 1; flex: none; }
.promise { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.promise li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; color: var(--green-deep); }
.promise .ic { color: var(--green); font-size: 16px; }
.hero-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; background: var(--tint-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 899px) { .hero-photo { aspect-ratio: 4 / 3.4; } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* ── 큰 소리 카드(음악 깔린 방송·여러 나라 말) ── */
.audio-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); }
.audio-card.playing { border-color: var(--green); }
.audio-btn { width: 60px; height: 60px; border-radius: 999px; border: 0; background: var(--green); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: transform .2s; }
.audio-btn:hover { transform: scale(1.05); }
.audio-btn [hidden] { display: none; }
.audio-meta { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.audio-title { font-weight: 700; line-height: 1.35; }
.audio-sub { font-size: 14px; color: var(--muted); line-height: 1.4; }
.audio-row { display: flex; align-items: center; gap: 10px; }
.audio-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--tint-2); overflow: hidden; cursor: pointer; }
.audio-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; }
.audio-time { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 100%; background: var(--green); border-radius: 2px; transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
.playing .eq { display: inline-flex; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.audio-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.audio-lang { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.audio-lang:hover { border-color: var(--green); color: var(--green); }
.audio-lang.active { background: var(--green); border-color: var(--green); color: #fff; }
.audio-script { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; padding: 16px 18px; border-radius: 16px; background: var(--tint); min-height: 4.6em; }

/* ── 숫자 세 개 ── */
.stats { display: grid; gap: 12px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--tint); display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: clamp(40px, 8vw, 60px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .42em; font-weight: 700; letter-spacing: -.01em; margin-left: 3px; }
.stat-label { font-weight: 700; line-height: 1.4; }
.stat-src { font-size: 13.5px; color: var(--muted); }
.turn { font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; line-height: 1.5; letter-spacing: -.02em; max-width: 720px; text-wrap: balance; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 약국 유형 전환: 누르면 초록 표시가 미끄러진다 ── */
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px; border-radius: 18px; background: #fff; border: 1.5px solid var(--line); max-width: 560px; }
.seg-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 13px; background: var(--green); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.seg[data-on="1"] .seg-ind { transform: translateX(100%); }
.seg[data-on="2"] .seg-ind { transform: translateX(200%); }
.seg button { position: relative; z-index: 1; min-height: 52px; padding: 6px 4px; border: 0; background: transparent; border-radius: 13px; font-size: clamp(14.5px, 3.9vw, 17px); font-weight: 700; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; transition: color .2s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg button .ic { font-size: 18px; }
@media (max-width: 380px) { .seg button .ic { display: none; } }
.panel { display: grid; gap: clamp(18px, 3vw, 32px); }
.panel[hidden] { display: none; }
.panel-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--tint-2); }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.panel-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pain { font-size: clamp(18px, 1.9vw, 22px); font-weight: 500; line-height: 1.6; text-wrap: pretty; }
.panel-wide { display: grid; gap: clamp(18px, 3vw, 32px); }
@media (min-width: 900px) {
  .panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .panel > .panel-side { align-self: center; }
  .panel-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; }
}

/* ── 견본 방송 카드: 누르면 그 자리에서 재생 ── */
.sub { font-size: 14px; font-weight: 700; letter-spacing: .01em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sub .ic { color: var(--green); font-size: 17px; }
.ments { display: grid; gap: 10px; }
.ment { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 15px 16px; border-radius: 18px; border: 1.5px solid transparent; background: #fff; color: inherit; font-size: inherit; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ment:hover { border-color: var(--green); }
.ment.playing { border-color: var(--green); background: var(--tint); }
.ment-badge { width: 44px; height: 44px; border-radius: 999px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.ment-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ment-title { font-weight: 700; line-height: 1.35; }
.ment-text { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.ment.playing .ment-text { color: var(--ink); }
.ment-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--green); }
.sec:not(.tinted) .ment { background: var(--tint); }
@media (min-width: 620px) { .ments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 하루 일정 ── */
.day { list-style: none; display: flex; flex-direction: column; border-radius: 18px; background: #fff; overflow: hidden; }
.day li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: baseline; }
.day li:first-child { border-top: 0; }
.day time, .day .when { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.day span { font-size: var(--fs-small); line-height: 1.5; }

/* ── 방송 아이디어 10가지 ── */
.ideas { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ideas li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ideas .ib { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ideas p { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; margin-top: 2px; }
@media (min-width: 820px) { .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--tint); align-items: flex-start; }
.callout .ic { font-size: 24px; color: var(--green); margin-top: 3px; }
.callout p { font-size: var(--fs-small); line-height: 1.6; }
.sec.tinted .callout { background: #fff; }

/* ── 계절 달력 ── */
.cal { border-radius: var(--radius); background: #fff; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.cal-row { display: grid; grid-template-columns: minmax(74px, 112px) minmax(0, 1fr); gap: 8px; align-items: center; }
.cal-name { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.cal-name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--mono); }
.cal-cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.cal-cells i { height: 22px; border-radius: 5px; background: var(--tint); }
.cal-cells i.on { background: var(--green); }
.cal-cells i.now { box-shadow: 0 0 0 2px var(--ink); }
.cal-head .cal-cells span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.cal-head .cal-cells span.now { color: var(--ink); font-weight: 600; }

/* ── 준비물 3가지 ── */
.cards3 { display: grid; gap: 12px; }
.card3 { padding: 22px; border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.card3 .ib { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.card3 p { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
@media (min-width: 820px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 자주 묻는 것 ── */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { border-radius: 18px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; line-height: 1.45; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }

/* ── 마지막: 체험 신청 ── */
.start { background: var(--green-deep); color: #fff; }
.start .eyebrow { color: #BFE5CE; }
.start .em { color: #BFE5CE; }
.start .lead { color: rgba(255, 255, 255, .82); }
.steps { list-style: none; display: grid; gap: 10px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .09); }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--green-deep); font-family: var(--mono); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps p { font-size: var(--fs-small); color: rgba(255, 255, 255, .8); line-height: 1.55; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 999px; border: 0; font-size: 18px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.light { background: #fff; color: var(--green-deep); }
.btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn.quiet { min-height: 48px; padding: 0 18px; font-size: 15.5px; background: #fff; color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.tel-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .cta .btn { width: 100%; } }

/* ── 꼬리말 ── */
.foot { padding-block: 36px 28px; }
.foot .in { gap: 14px; }
.foot p, .foot li { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot li { display: flex; align-items: center; gap: 5px; }
.foot a { text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; font-weight: 500; }

/* ── 아래 고정 신청 줄: 엄지가 닿는 자리 ── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  padding: 9px var(--side-r) calc(9px + env(safe-area-inset-bottom, 0px)) var(--side); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.dock.away { transform: translateY(110%); }
.dock-in { max-width: 560px; margin-inline: auto; display: flex; gap: 8px; align-items: stretch; }
.dock a { min-height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; line-height: 1.15; }
.dock .go { flex: 1; background: var(--green); color: #fff; font-size: 17px; padding: 0 14px; flex-direction: column; gap: 2px; }
.dock .go small { font-size: 12px; font-weight: 500; opacity: .9; }
.dock .call { flex: none; padding: 0 14px; color: var(--green-deep); font-size: 14.5px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.dock .call .ic { font-size: 18px; }

/* ── 첫 화면만 살짝 올라오며 나타난다. 나머지는 처음부터 다 보인다(스크롤로 숨겼다 보이는 연출 없음) ── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.rise.r2 { animation-delay: .1s; } .rise.r3 { animation-delay: .2s; } .rise.r4 { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .eq i { animation: none; }
  .seg-ind, .dock, .audio-btn { transition: none; }
}

@media print {
  body.pharm { padding-bottom: 0; }
  .dock, .readbar, .audio-langs { display: none; }
  .panel[hidden] { display: grid; }
  .sec { padding-block: 10mm; break-inside: avoid; }
}
