/* 경희온담한의원 · 보폐고 엔오 */
:root {
  --paper: #f7f4ee;
  --paper-2: #efeae1;
  --card: #fffdf9;
  --ink: #141414;
  --ink-2: #4a4641;
  --ink-3: #8a847b;
  --line: #e2dbcf;
  --accent: #8c1d2f;
  --accent-ink: #6f1524;
  --accent-soft: #f4e7e6;
  --radius: 18px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.serif { font-family: var(--serif); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 30px -10px rgba(140, 29, 47, .55); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header .logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 34px; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.header .btn { height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::after { /* 은은한 한지 결 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(20, 20, 20, .035) 1px, transparent 1px);
  background-size: 4px 4px;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.28; letter-spacing: -0.035em;
  margin: 22px 0 26px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 30em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .facts {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 48px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.hero .facts li {
  list-style: none; font-size: 14px; color: var(--ink-2);
  padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line);
}
.hero .facts li:last-child { border: 0; margin: 0; padding: 0; }
.hero .facts b { display: block; font-size: 16px; color: var(--ink); font-weight: 700; }

.hero-visual { position: relative; }
.hero-visual .arch {
  position: relative; aspect-ratio: 1 / 1.04; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: #e9ecee;
  box-shadow: 0 40px 80px -40px rgba(20, 20, 20, .35);
}
.hero-visual .arch img.product { width: 100%; height: 100%; object-fit: cover; object-position: 47% 60%; }
.hero-visual .herb {
  position: absolute; left: -9%; bottom: -5%; width: 62%;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .18));
}
.hero-visual .tag {
  position: absolute; right: -4%; top: 14%;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: 0 18px 40px -20px rgba(20, 20, 20, .3);
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.hero-visual .tag b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.hero-visual .seal {
  position: absolute; left: 6%; top: 6%; width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: 13px; line-height: 1.3; letter-spacing: .02em;
  transform: rotate(-8deg); box-shadow: 0 10px 24px -8px rgba(140, 29, 47, .6);
}

/* ---------- section common ---------- */
.section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.35; letter-spacing: -0.03em; margin: 16px 0 16px;
}
.section-head p { color: var(--ink-2); }
.section.dark { background: var(--ink); color: #f3efe8; }
.section.dark .section-head p { color: #b9b2a7; }
.section.dark .eyebrow { color: #e3a6ad; }

/* ---------- symptom check ---------- */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.check-card {
  background: #1d1c1b; border: 1px solid #2d2b29; border-radius: var(--radius); padding: 30px 28px 32px;
}
.check-card .num { font-family: var(--serif); font-size: 13px; color: #8f887d; letter-spacing: .1em; }
.check-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 6px 0 4px; }
.check-card .sub { font-size: 14px; color: #a39c90; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 15px;
  border: 1px solid #3b3936; color: #e6e1d8; transition: all .18s ease;
}
.chip:hover { border-color: #6e6a64; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"]::before { content: "✓"; font-size: 12px; }
.check-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: #1d1c1b; border: 1px solid #2d2b29;
}
.check-foot .count { color: #b9b2a7; font-size: 15px; }
.check-foot .count b { color: #fff; font-family: var(--serif); font-size: 22px; margin: 0 2px; }
.section.dark .btn-primary { background: #f7f4ee; color: var(--ink); }
.section.dark .btn-primary:hover { background: var(--accent); color: #fff; }

/* ---------- about ---------- */
.about-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; margin-bottom: 56px; }
.about-top .section-head { margin-bottom: 0; }
.for-whom { list-style: none; border-top: 1px solid var(--ink); }
.for-whom li { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.for-whom li small { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.herbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.herb-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px; display: flex; flex-direction: column;
}
.herb-card img { height: 92px; width: 100%; object-fit: contain; object-position: left center; margin-bottom: 22px; }
.herb-no { font-family: var(--serif); font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.herb-card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.45; margin: 6px 0 10px; }
.herb-card p:last-child { font-size: 15px; color: var(--ink-2); }
.herb-card.no { background: var(--ink); color: #f3efe8; border-color: var(--ink); }
.herb-card.no p:last-child { color: #b9b2a7; }
.herb-card.no .herb-no { color: #e3a6ad; }
.molecule { position: relative; height: 92px; margin-bottom: 22px; }
.molecule i { position: absolute; top: 50%; border-radius: 50%; transform: translateY(-50%); }
.molecule i:first-child { left: 6px; width: 54px; height: 54px; background: radial-gradient(circle at 35% 30%, #fff 0 6%, #c8c1b6 40%, #6d675f 100%); }
.molecule i:last-child { left: 50px; width: 62px; height: 62px; background: radial-gradient(circle at 35% 30%, #ffd9dd 0 6%, #b5374b 45%, #5e0f1c 100%); }
.herb-foot { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* ---------- doctor ---------- */
.doctor { background: var(--paper-2); padding-bottom: 0; overflow: hidden; }
.doctor .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: end; }
.doctor-photo { position: relative; align-self: end; }
.doctor-photo::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; top: 18%;
  border-radius: 999px 999px 0 0; background: var(--accent);
}
.doctor-photo img { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.doctor-copy { padding-bottom: 110px; }
.doctor-copy blockquote { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; line-height: 1.5; letter-spacing: -0.03em; margin: 20px 0 24px; }
.doctor-copy > p { color: var(--ink-2); max-width: 34em; }
.sign { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.sign .name { font-size: 26px; font-weight: 600; }
.sign .name small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.career { list-style: none; font-size: 15px; color: var(--ink-2); }
.career li::before { content: "—"; color: var(--accent); margin-right: 8px; }

/* ---------- dosage ---------- */
.dose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dose-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.dose-card .phase { font-weight: 700; }
.dose-card .times { font-size: 18px; color: var(--ink-2); margin: 10px 0 14px; }
.dose-card .times b { font-size: 52px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.dots { display: flex; gap: 6px; margin-bottom: 18px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.dots i.on { background: var(--accent); border-color: var(--accent); }
.dots i.half { opacity: .35; }
.dose-card > p:last-child { font-size: 15px; color: var(--ink-2); }
.dose-sub { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-top: 16px; }
.kids, .caution { border-radius: var(--radius); padding: 30px 28px; }
.kids { background: var(--accent-soft); }
.caution { border: 1px solid var(--line); }
.kids h3, .caution h3 { font-size: 21px; font-weight: 600; margin-bottom: 16px; }
.kids table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.kids th, .kids td { text-align: left; padding: 10px 0; border-bottom: 1px solid rgba(140, 29, 47, .15); font-size: 15px; }
.kids th { font-weight: 600; width: 40%; }
.kids p, .caution li { font-size: 14px; color: var(--ink-2); }
.caution ul { list-style: none; display: grid; gap: 14px; }
.caution li b { display: block; color: var(--ink); font-size: 15px; }

/* ---------- price ---------- */
.price { background: var(--paper-2); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 20px; }
.price-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px 36px 36px; display: flex; flex-direction: column;
}
.price-card .label { font-weight: 600; color: var(--ink-2); }
.price-card .amount { font-size: 20px; margin: 8px 0 22px; }
.price-card .amount b { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; margin-right: 2px; }
.price-card ul { list-style: none; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 30px; flex: 1; }
.price-card li { font-size: 15px; color: var(--ink-2); padding: 3px 0; }
.price-card li::before { content: "·"; margin-right: 8px; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; }
.price-card.featured { border: 2px solid var(--ink); box-shadow: 0 30px 60px -40px rgba(20, 20, 20, .45); }
.ribbon {
  position: absolute; top: -14px; left: 36px; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600; padding: 4px 14px; border-radius: 999px;
}
.price-notes { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; font-size: 15px; color: var(--ink-2); }
.price-notes li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

/* ---------- remote flow ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid #34312e; }
.flow li { padding: 28px 22px 8px 0; position: relative; }
.flow li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #e3a6ad; }
.flow .step { font-size: 14px; color: #8f887d; letter-spacing: .1em; }
.flow h3 { font-size: 19px; font-weight: 700; margin: 6px 0 8px; }
.flow p { font-size: 15px; color: #b9b2a7; }
.flow-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 56px; }
.flow-cta p { font-size: 14px; color: #8f887d; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 16px; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- clinic & footer ---------- */
.clinic { padding-top: 0; }
.clinic-card {
  background: var(--ink); color: #f3efe8; border-radius: 28px; padding: 52px 52px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px 56px; align-items: start;
}
.clinic-brand img { width: 220px; margin-bottom: 18px; }
.clinic-brand p { color: #b9b2a7; font-size: 17px; }
.clinic-info { display: grid; gap: 18px; }
.clinic-info div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #2f2d2a; }
.clinic-info dt { color: #8f887d; font-size: 14px; padding-top: 2px; }
.clinic-actions { grid-column: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { border: 1px solid #4a4743; color: #f3efe8; height: 48px; font-size: 15px; }
.btn-light:hover { background: #f3efe8; color: var(--ink); }
.footer { padding: 40px 0 56px; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.footer .wrap > p + p { margin-top: 10px; }
.footer .disclaimer { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- mobile sticky CTA ---------- */
.sticky-cta { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding: 36px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .check-grid { grid-template-columns: 1fr; }
  .about-top, .doctor .wrap, .faq-wrap, .dose-sub { grid-template-columns: 1fr; }
  .about-top { gap: 32px; }
  .herbs { grid-template-columns: repeat(2, 1fr); }
  .doctor .wrap { gap: 40px; }
  .doctor-photo { order: 2; max-width: 420px; margin: 0 auto; width: 100%; }
  .doctor-copy { padding-bottom: 0; }
  .dose-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid #34312e; margin-left: 4px; }
  .flow li { padding: 0 0 30px 28px; }
  .flow li::before { top: 6px; left: -5px; }
  .clinic-card { grid-template-columns: 1fr; padding: 40px 32px; }
  .clinic-actions { grid-column: auto; }
  .faq-wrap { gap: 8px; }
  .section { padding: 88px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header .wrap { height: 64px; }
  .header .logo img { height: 28px; }
  .header .btn { display: none; }
  .hero .lead { font-size: 16px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .hero .facts li { padding-right: 14px; margin-right: 14px; font-size: 13px; }
  .hero .facts b { font-size: 15px; }
  .hero-visual .tag { right: 0; }
  .sticky-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 244, 238, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { height: 52px; }
  .sticky-cta .btn-ghost { flex: 0 0 auto; padding: 0 18px; }
  .sticky-cta .btn-primary { flex: 1; }
  body { padding-bottom: 76px; }
  .herbs { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 34px 26px 28px; }
  .price-card .amount b { font-size: 42px; }
  .clinic-card { padding: 34px 24px; border-radius: 22px; }
  .clinic-info div { grid-template-columns: 72px 1fr; }
  .clinic-actions .btn { flex: 1; }
  .faq summary { font-size: 16px; }
  .sign { gap: 20px; }
}
