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

:root {
  --ink: #18181B;
  --paper: #FFFFFF;
  --accent: #FF3B30;
  --line: #E4E4E7;
  --muted: #52525B;
  --radius: 4px;
  --pad-section: 96px;
  --font-title: 'Cafe24 Ssurround', 'Pretendard', 'Noto Sans KR', sans-serif;
  --font-body: 'Pretendard', 'Noto Sans KR', sans-serif;
  /* type scale 1.25 */
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-h3: 1.25rem;
  --fs-h2: 1.5625rem;
  --fs-h1: 2.4414rem;
  --fs-lede: 1.125rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: 0; }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; color: var(--ink); }

a { color: var(--accent); }

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

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: 1080px;
  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(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: var(--fs-sm);
  transition: transform 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.btn-header-cta {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-large { padding: 16px 34px; font-size: 1.0625rem; }

/* Hero: time-axis layout */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 56px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-eyebrow {
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--paper);
  font-size: 1.875rem;
  max-width: 18ch;
}

.hero-lede {
  color: #D4D4D8;
  font-size: var(--fs-lede);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-timeaxis {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #3F3F46;
  padding-top: 12px;
  max-width: 480px;
}

.hero-timeaxis span {
  font-size: var(--fs-sm);
  color: #A1A1AA;
  position: relative;
}

.hero-timeaxis span::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: var(--accent);
}

/* Sections */
.section { padding: var(--pad-section) 0; }

.section.problem { background: #FAFAFA; }

.section h2 { max-width: 32ch; }

.core h2 { margin-top: 1.4em; }
.core h2:first-child { margin-top: 0; }

/* Timeline SVG */
.timeline-figure { margin: 32px 0 8px; }

.timeline-svg {
  width: 100%;
  height: auto;
  display: block;
}

.timeline-svg text { fill: var(--ink); font-family: var(--font-body); }

.timeline-note {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
}

caption {
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  background: #FAFAFA;
  border-bottom: 1px solid var(--line);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

thead th {
  background: var(--ink);
  color: var(--paper);
}

tbody tr:last-child td { border-bottom: none; }

.table-caption-note {
  margin-top: 14px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Gallery */
.photo-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.photo-card {
  margin: 0;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.photo-card figcaption {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.0625rem;
}

details p { margin-top: 12px; margin-bottom: 0; color: var(--muted); }

/* CTA */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  padding: var(--pad-section) 0;
  text-align: center;
}

.cta-section h2 { color: var(--paper); margin: 0 auto 0.6em; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-section p { color: #D4D4D8; max-width: 42ch; }

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--ink);
}

.footer-links a:hover { color: var(--accent); }

.footer-corp {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
}

/* Breakpoints */
@media (min-width: 640px) {
  .hero h1 { font-size: var(--fs-h1); }
  .photo-row { flex-direction: row; justify-content: center; }
  .photo-card { flex: 1 1 30%; }
}

@media (min-width: 1024px) {
  :root { --pad-section: 120px; }
  .hero { padding: 96px 0 72px; }
}

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

@media (prefers-color-scheme: dark) {
  body { background: #FFFFFF; color: #18181B; }
}
