/* ponytail: 'Paperlogy' CDN 미검증으로 폴백 스택 사용, 실제 폰트 라이선스/CDN 확보 후 교체 */

:root{
  --bg: #E5E7EB;
  --ink: #111827;
  --accent: #FACC15;
  --ink-soft: #374151;
  --panel: #FFFFFF;
  --panel-dark: #1F2937;
  --border: #D1D5DB;

  --font-title: 'Paperlogy', 'Pretendard', 'Noto Sans KR', sans-serif;
  --font-body: 'Pretendard', 'Noto Sans KR', sans-serif;

  /* type scale: perfect fourth (1.333) */
  --step-0: 1rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;
  --step-5: 4.209rem;

  --radius: 12px;
  --section-pad: 96px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: var(--step-0);
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.6em;
}

h2{ font-size: var(--step-3); }
h3{ font-size: var(--step-2); }

p{ margin: 0 0 1em; }

a{ color: inherit; }

img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary{
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover{ background: #eab308; }

.btn-header{
  background: transparent;
  color: var(--bg);
  border-color: var(--accent);
  padding: 0.5em 1.1em;
  font-size: 0.95rem;
}
.btn-header:hover{ background: var(--accent); color: var(--ink); }

/* header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  height: 68px;
  display: flex;
  align-items: center;
}
.header-inner{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg);
  letter-spacing: -0.01em;
}

/* hero */
.hero{
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  padding: calc(68px + 40px) 20px 40px;
}
.hero-inner{
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
}
.hero-eyebrow{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.8em;
}
.hero h1{
  color: #F9FAFB;
  font-size: clamp(2.1rem, 6vw, var(--step-5));
  max-width: 16ch;
  margin-bottom: 0.5em;
}
.hero-lead{
  color: #D1D5DB;
  font-size: var(--step-1);
  max-width: 46ch;
  margin-bottom: 1.6em;
}

@media (prefers-reduced-motion: no-preference){
  .hero-inner{
    animation: hero-fade-up 0.7s ease-out both;
  }
}
@keyframes hero-fade-up{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* sections */
.section{
  padding: var(--section-pad) 20px;
}
.section-inner{
  max-width: 880px;
  margin: 0 auto;
}
.section-problem{ background: var(--bg); }
.section-docs{ background: var(--panel); }
.section-checklist{ background: var(--ink); }
.section-checklist .section-inner{ max-width: 1000px; }
.section-checklist h2, .section-checklist p{ color: #F9FAFB; }
.section-table{ background: var(--bg); }
.section-table .section-inner{ max-width: 1000px; }
.section-photos{ background: var(--panel); }
.section-photos .section-inner{ max-width: 1100px; }
.section-faq{ background: var(--bg); }
.section-cta{ background: var(--ink); }

/* checklist svg */
.checklist-svg{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-top: 1em;
}

/* table */
.table-scroll{
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--panel);
}
caption{
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
th, td{
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
thead th{
  background: var(--ink);
  color: #F9FAFB;
  font-weight: 700;
}
tbody th{ font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th{ border-bottom: none; }

/* photos */
.photo-grid{
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 1.2em;
}
.photo-card{
  margin: 0;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-card img{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.photo-card figcaption{
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* faq */
.faq-item{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.faq-item summary{
  font-weight: 700;
  cursor: pointer;
}
.faq-item p{
  margin-top: 0.8em;
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* cta */
.cta-inner{
  text-align: left;
}
.cta-inner h2, .cta-inner p{ color: #F9FAFB; }

/* footer */
.site-footer{
  background: var(--ink);
  color: #D1D5DB;
  padding: 48px 20px;
}
.footer-inner{
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand{
  font-family: var(--font-title);
  font-weight: 700;
  color: #F9FAFB;
  font-size: var(--step-1);
  margin-bottom: 0.4em;
}
.footer-corp{
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-bottom: 1.2em;
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-links a{
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover{ color: var(--accent); }

/* breakpoints */
@media (min-width: 640px){
  .photo-grid{
    flex-direction: row;
  }
  .photo-card{
    flex: 1 1 0;
  }
}

@media (min-width: 1024px){
  :root{ --section-pad: 120px; }
  .section-inner{ max-width: 960px; }
  .section-checklist .section-inner, .section-table .section-inner{ max-width: 1080px; }
}

@media (min-width: 1280px){
  .section-inner{ max-width: 1040px; }
}

@media (max-width: 639px){
  :root{ --section-pad: 64px; }
  .hero{ padding-top: calc(68px + 24px); }
}
