/* ==============================================
   아트비길 정보 — style.css
   forest green / warm-gray / card-grid dashboard system
   ============================================== */

/* 1. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #1c201d;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* 2. Tokens */
:root {
  --primary:      #1f5f43;
  --primary-dark: #143d2b;
  --primary-tint: #e6efe8;
  --bg:           #ffffff;
  --bg-alt:       #f5f4ef;
  --card:         #ffffff;
  --text:         #1c201d;
  --text-sub:     #5c6259;
  --border:       #dcdcd2;
  --radius:       4px;
  --max-w:        1140px;
  --sec-pad:      72px;
}

/* 3. Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }
.center { text-align: center; }

/* 4. Section typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 1px;
}
.eyebrow.center { justify-content: center; }
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
}
.accent { color: var(--primary); }

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { font-size: 15px; padding: 14px 28px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-tint); }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; border-color: #fff; }
.btn-white:hover { background: #eef2ee; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* 6. Sidebar (desktop primary nav) */
:root { --sidebar-w: 84px; --tabbar-h: 62px; }
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--border);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8px 14px;
}
.sidebar-logo { display: flex; align-items: center; justify-content: center; width: 100%; padding: 6px 2px; margin-bottom: 16px; flex-shrink: 0; }
.sidebar-logo span { font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); line-height: 1.3; text-align: center; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  color: var(--text-sub);
}
.sidebar-link svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-link span { font-size: 10.5px; font-weight: 600; letter-spacing: -0.01em; }
.sidebar-link:hover { color: var(--text); }
.sidebar-link.active { color: var(--primary); font-weight: 700; }

/* 7. Page body (content column offset by sidebar) */
.page-body { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.page-body > main { flex: 1; }

/* Bottom tab bar (mobile primary nav) */
.bottom-tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--tabbar-h);
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 250;
  align-items: stretch;
  justify-content: space-around;
}
.tab-link { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-sub); }
.tab-link svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab-link span { font-size: 10.5px; font-weight: 600; }
.tab-link.active { color: var(--primary); }

/* 8. Info banner */
.info-banner {
  background: var(--primary-tint);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 9px 24px;
  font-size: 12px;
  color: #33473c;
  line-height: 1.5;
}

/* 9. Hero */
.hero { padding: 80px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}
.hero-sub { font-size: 15px; color: var(--text-sub); line-height: 1.75; margin-bottom: 30px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 44px; display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero-stat {
  flex: 1 1 25%;
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); margin-bottom: 2px; }
.hero-stat span { font-size: 11.5px; color: var(--text-sub); }

/* Hero visual panel */
.hero-panel {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 26px;
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.hero-panel-head span { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.hero-panel-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--primary); }
.hero-panel-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero-panel-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row .k { color: var(--text-sub); }
.hero-panel-row .v { font-weight: 700; color: var(--text); }

/* 10. Cards section — plain divided list, not a card grid */
.cards-section { padding: var(--sec-pad) 0; border-top: 1px solid var(--border); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); }
.info-card {
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.info-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.info-card p { font-size: 12.5px; color: var(--text-sub); line-height: 1.65; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.card-link svg { width: 12px; height: 12px; stroke: var(--primary); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* 11. Overview table */
.overview-section { padding: var(--sec-pad) 0; border-top: 1px solid var(--border); }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.overview-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.overview-table th {
  width: 160px;
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--text-sub);
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
}
.overview-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text); line-height: 1.65; }
.overview-table tr:last-child th, .overview-table tr:last-child td { border-bottom: none; }

/* 12. Mechanism — plain numbered list, no card boxes/icon badges */
.mechanism-section { padding: var(--sec-pad) 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.mech-grid { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--border); }
.mech-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.mech-step .step-num {
  flex-shrink: 0;
  width: 30px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  padding-top: 2px;
}
.mech-step h4 { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.mech-step p { font-size: 12.5px; color: var(--text-sub); line-height: 1.65; }
.mech-footnote { margin-top: 26px; font-size: 13px; color: var(--text-sub); border-top: 1px solid var(--border); padding-top: 20px; }
.mech-footnote strong { color: var(--text); font-weight: 700; }

/* 13. Bottom CTA */
.bottom-cta { background: var(--primary); padding: var(--sec-pad) 0; text-align: center; color: #fff; }
.bottom-cta h2 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 12px; }
.bottom-cta .sub { font-size: 14.5px; opacity: .85; margin-bottom: 28px; line-height: 1.7; }
.bottom-cta .notice { margin-top: 18px; font-size: 12px; opacity: .6; }

/* 14. Footer */
.site-footer { background: var(--primary-dark); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 15px; }
.footer-brand { font-size: 14.5px; font-weight: 700; color: #fff; }
.footer-disclaimer { font-size: 12px; line-height: 1.85; color: #a9bcae; max-width: 720px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #93a898; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: #6f8676; }

/* 15. Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-sub); display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--primary); }

/* 16. Page hero (sub-pages) */
.page-hero { background: var(--bg-alt); padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; color: var(--text); margin-bottom: 12px; }
.page-hero .lead { font-size: 14.5px; color: var(--text-sub); line-height: 1.75; max-width: 620px; }

/* 17. Content sections */
.content-sec { padding: 52px 0; border-top: 1px solid var(--border); }
.content-sec.bg-alt { background: var(--bg-alt); }
.content-h2 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; color: var(--text); margin-bottom: 18px; }
.content-body { font-size: 14.5px; color: var(--text-sub); line-height: 1.85; }
.content-body p + p { margin-top: 12px; }
.content-body strong { color: var(--text); font-weight: 700; }

/* 18. Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 22px; border: 1px solid var(--border); }
.data-table thead th { background: var(--primary); color: #fff; font-weight: 700; padding: 11px 16px; text-align: left; font-size: 12.5px; }
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text); line-height: 1.65; vertical-align: top; }
.data-table tbody td:last-child { border-right: none; }
.data-table tbody tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-right: 4px; white-space: nowrap; border: 1px solid transparent; }
.tag-warn { background: #fbf3df; color: #8a6415; border-color: #ecdcae; }
.tag-info { background: var(--primary-tint); color: var(--primary); border-color: #c9dccf; }
.tag-stop { background: #f8e6e4; color: #a3382b; border-color: #ecc4bd; }

/* 19. Highlight / Disclaimer boxes (no left-accent bars — full border only) */
.highlight-box { background: var(--primary-tint); border: 1px solid #c9dccf; border-radius: var(--radius); padding: 18px 22px; font-size: 13.5px; color: var(--text); line-height: 1.8; margin-top: 22px; }
.highlight-box strong { color: var(--primary); }
.disclaimer-box { background: #fbf6e8; border: 1px solid #e7d9a6; border-radius: var(--radius); padding: 17px 21px; font-size: 12.5px; color: #63500f; line-height: 1.85; margin-top: 22px; }
.caution-box { background: #f9ece9; border: 1px solid #e8bfb6; border-radius: var(--radius); padding: 17px 21px; font-size: 12.5px; color: #7a3123; line-height: 1.85; margin-top: 22px; }

/* 20. Steps — plain numbered list, no card boxes */
.step-list { display: flex; flex-direction: column; margin-top: 22px; border-top: 1px solid var(--border); }
.step-item { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border); }
.step-badge { width: 22px; flex-shrink: 0; color: var(--primary); font-size: 13px; font-weight: 800; padding-top: 1px; }
.step-content h4 { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.step-content p { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }

/* 22. FAQ accordion — plain divider list, no per-item boxes */
.faq-list { margin-top: 28px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; font-size: 14.5px; font-weight: 700; color: var(--text); background: none; border: none; cursor: pointer; text-align: left; line-height: 1.5; }
.faq-q svg { flex-shrink: 0; stroke: var(--text-sub); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; width: 16px; height: 16px; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .25s ease; font-size: 13.5px; color: var(--text-sub); line-height: 1.85; }
.faq-a-inner { padding: 0 4px 16px; }
.faq-item.open .faq-a { max-height: 800px; }

/* 23. CTA card — plain block with a top divider, not a boxed card */
.cta-card { border-top: 1px solid var(--border); padding: 28px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; }
.cta-card-text h3 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.cta-card-text p { font-size: 13.5px; color: var(--text-sub); line-height: 1.65; }
.cta-notice { font-size: 12px; color: var(--text-sub); margin-top: 8px; line-height: 1.5; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* 24. Shop CTA block (import.html) — plain, top divider only */
.shop-cta-card { border-top: 1px solid var(--border); padding: 28px 0 0; margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shop-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--primary); margin-bottom: 8px; }
.shop-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 6px; }
.shop-desc { font-size: 13.5px; color: var(--text-sub); line-height: 1.65; }
.shop-notice { font-size: 12px; color: var(--text-sub); margin-top: 8px; line-height: 1.5; }
.shop-cta-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* 25. Chips row (info/label chips, per design brief) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--border); padding: 7px 12px; border-radius: 100px; }
.chip svg { width: 13px; height: 13px; stroke: var(--primary); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 26. Compare grid (brand-name / equivalence tables use data-table; this is for 2-col comparisons) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); margin-top: 22px; }
.table-scroll .data-table { margin-top: 0; min-width: 540px; }

/* 27. Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .mech-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  :root { --sec-pad: 48px; }
  .sidebar { display: none; }
  .page-body { margin-left: 0; padding-bottom: calc(var(--tabbar-h) + 10px); }
  .bottom-tabbar { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .cta-card, .shop-cta-card { padding-top: 22px; }
  .data-table { font-size: 12.5px; }
  .data-table thead th, .data-table tbody td { padding: 10px 12px; }
  .overview-table th { width: 108px; font-size: 13px; }
  .overview-table td { font-size: 13px; }
}
