/* ==============================================
   핀페시아 정보 — style.css
   ============================================== */

/* 1. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.75;
  -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:       #1a5c9a;
  --primary-light: #e8f1fb;
  --primary-hover: #154e86;
  --bg:            #ffffff;
  --bg-alt:        #f5f7fa;
  --text:          #111111;
  --text-sub:      #555555;
  --border:        #dde1e7;
  --radius:        10px;
  --max-w:         1080px;
  --sec-pad:       80px;
  --hdr:           60px;
}

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

/* 4. Section typography */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 48px;
}
.accent { color: var(--primary); }

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { font-size: 16px; padding: 15px 32px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #f0f6ff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* 6. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--hdr);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}
.hdr-logo img { height: 28px; width: auto; }
.hdr-logo .logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.hdr-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color .2s;
  white-space: nowrap;
}
.hdr-nav a:hover,
.hdr-nav a.active { color: var(--text); font-weight: 600; }
.hdr-cta {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 7px 15px;
  border-radius: 7px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.hdr-cta:hover { background: var(--primary); color: #fff; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: all .3s; }

/* 7. Mobile nav */
.site-nav-mobile {
  display: none;
  position: fixed;
  top: var(--hdr);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 199;
  flex-direction: column;
}
.site-nav-mobile.open { display: flex; }
.site-nav-mobile a {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.site-nav-mobile a:last-child { border-bottom: none; }
.site-nav-mobile a:hover { color: var(--primary); }

/* 8. Info banner */
.info-banner {
  background: #f0f5ff;
  border-bottom: 1px solid #c9d9f0;
  text-align: center;
  padding: 8px 24px;
  font-size: 12px;
  color: #445;
  line-height: 1.5;
}

/* 9. Hero */
.hero {
  padding: 88px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-sub);
  line-height: 1.72;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  margin-top: 52px;
  display: inline-flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stats > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hero-stats strong { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.hero-stats span { font-size: 12px; color: var(--text-sub); }

/* 10. Cards section */
.cards-section { background: var(--bg-alt); padding: var(--sec-pad) 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.info-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.3; }
.info-card p { font-size: 13px; color: var(--text-sub); line-height: 1.65; flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
  transition: gap .2s;
}
.card-link:hover { gap: 6px; }
.card-link svg { width: 13px; height: 13px; 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; }
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.overview-table th {
  width: 150px;
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text-sub);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
}
.overview-table td {
  padding: 14px 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 */
.mechanism-section { background: var(--bg-alt); padding: var(--sec-pad) 0; }
.mech-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0;
}
.mech-step {
  flex: 1;
  max-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.mech-step .step-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}
.mech-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.mech-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mech-step h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.mech-step p { font-size: 12px; color: var(--text-sub); line-height: 1.65; }
.mech-arrow {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
}
.mech-arrow svg { width: 20px; height: 20px; stroke: #bbb; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mech-footnote {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}
.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.5vw, 36px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.bottom-cta .sub { font-size: 15px; opacity: .8; margin-bottom: 32px; line-height: 1.65; }
.bottom-cta .notice { margin-top: 18px; font-size: 12px; opacity: .55; }

/* 14. Footer */
.site-footer { background: #111; padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { font-size: 15px; font-weight: 700; color: #fff; }
.footer-disclaimer { font-size: 12px; line-height: 1.85; color: #888; max-width: 700px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #777; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: #555; }

/* 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); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }

/* 16. Page hero (sub-pages) */
.page-hero {
  background: var(--bg-alt);
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 12px;
}
.page-hero .lead { font-size: 15px; color: var(--text-sub); line-height: 1.75; max-width: 600px; }

/* 17. Content sections */
.content-sec { padding: 56px 0; }
.content-sec + .content-sec { border-top: 1px solid var(--border); }
.content-sec.bg-alt { background: var(--bg-alt); border-top: none; }
.content-h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.content-body { font-size: 15px; color: var(--text-sub); line-height: 1.85; }
.content-body p + p { margin-top: 14px; }
.content-body strong { color: var(--text); font-weight: 600; }

/* 18. Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 24px;
}
.data-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 11px 16px;
  text-align: left;
  font-size: 13px;
}
.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.65;
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) td { background: var(--bg-alt); }
.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;
}
.tag-warn  { background: #fff3cd; color: #856404; }
.tag-info  { background: var(--primary-light); color: var(--primary); }
.tag-stop  { background: #fde8e8; color: #c0392b; }

/* 19. Highlight / Disclaimer boxes */
.highlight-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-top: 24px;
}
.highlight-box strong { color: var(--primary); }
.disclaimer-box {
  background: #fffbeb;
  border: 1px solid #f0d060;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13px;
  color: #6b4a00;
  line-height: 1.85;
  margin-top: 24px;
}
.caution-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.85;
  margin-top: 24px;
}

/* 20. Steps */
.step-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-content h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* 21. Timeline */
.timeline-list { display: flex; flex-direction: column; margin-top: 32px; }
.tl-item { display: flex; gap: 20px; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 42px;
}
.tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tl-line { flex: 1; width: 2px; background: var(--border); margin-top: 8px; }
.tl-item:last-child .tl-line { display: none; }
.tl-body { padding-top: 7px; }
.tl-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.tl-body p { font-size: 14px; color: var(--text-sub); line-height: 1.75; }
.tl-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

/* 22. FAQ accordion */
.faq-list { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  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 .25s;
  width: 18px;
  height: 18px;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
}
.faq-a-inner { padding-bottom: 18px; }
.faq-item.open .faq-a { max-height: 800px; }

/* 23. CTA card */
.cta-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}
.cta-card-text h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.cta-card-text p { font-size: 14px; 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. Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .mech-flow { flex-direction: column; align-items: center; }
  .mech-arrow { width: auto; padding-top: 0; padding: 6px 0; }
  .mech-arrow svg { transform: rotate(90deg); }
  .mech-step { max-width: 100%; width: 100%; }
  .cta-card { flex-direction: column; text-align: center; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
  :root { --sec-pad: 52px; --hdr: 54px; }
  .hdr-nav { display: none; }
  .hdr-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 28px; }
  .overview-table th { width: 100px; font-size: 13px; }
  .overview-table td { font-size: 13px; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .cta-card { padding: 24px 20px; }
  .data-table { font-size: 13px; }
  .data-table thead th,
  .data-table tbody td { padding: 10px 12px; }
}

/* 25. 가로 스크롤 테이블 래퍼 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin-top: 24px;
}
.table-scroll .data-table {
  margin-top: 0;
  min-width: 520px;
}

/* 26. 쇼핑몰 CTA 카드 (guide.html) */
.shop-cta-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  margin-top: 32px;
  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.1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.shop-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}
.shop-desc {
  font-size: 14px;
  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;
}
@media (max-width: 600px) {
  .shop-cta-card { padding: 24px 20px; }
  .shop-cta-btns { flex-direction: row; flex-wrap: wrap; }
}
