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

:root {
  --color-primary: #075985;
  --color-bg: #F0F9FF;
  --color-accent: #38BDF8;
  --color-ink: #0C3A52;
  --color-ink-soft: #33586C;
  --color-line: #BFE4F7;
  --color-white: #FFFFFF;

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

  /* type scale ratio 1.333 (perfect fourth), base 16px */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-h3: 1.333rem;
  --fs-h2: 1.777rem;
  --fs-h1: 2.369rem;
  --fs-lede: 1.125rem;

  --radius: 2px;
  --section-pad: 96px;
  --section-pad-mobile: 56px;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3 {
  font-family: var(--font-title);
  font-display: swap;
  color: var(--color-primary);
  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(--color-ink-soft); }

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-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.15rem;
  color: var(--color-primary);
}

.btn {
  display: inline-block;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 18px;
  font-size: var(--fs-small);
}

.btn-header:hover { background: #05455f; }

.btn-primary {
  background: var(--color-accent);
  color: #06283A;
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-primary:hover { background: #23A8E8; }

.btn-large { padding: 16px 32px; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: var(--section-pad-mobile) 0 48px;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-visual { order: 1; }

.hero-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  display: block;
  animation: hero-rise 0.6s ease-out both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-svg { animation: none; }
}

.hero-text { order: 2; }

.hero-lede {
  font-size: var(--fs-lede);
  color: var(--color-ink);
  max-width: 46ch;
}

/* Sections */
.section {
  padding: var(--section-pad-mobile) 0;
  border-bottom: 1px solid var(--color-line);
}

.section:last-of-type { border-bottom: none; }

.core h2:not(:first-child) { margin-top: 1.4em; }

/* Diagram */
.recovery-diagram {
  width: 100%;
  height: auto;
  margin-top: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.diagram-caption, .table-note {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  margin-top: 10px;
}

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

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--color-white);
}

caption {
  text-align: left;
  padding: 12px 16px;
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  background: var(--color-bg);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-small);
}

thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

tbody th[scope="row"] {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.gallery figure {
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery figcaption {
  padding: 12px 14px;
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.faq-list details {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-list details p {
  padding-bottom: 14px;
  margin: 0;
}

/* CTA */
.cta-section {
  background: var(--color-primary);
}

.cta-inner { text-align: center; }

.cta-section h2, .cta-section p { color: var(--color-white); }

.cta-section p { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: #06344A;
  padding: 40px 0;
}

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

.footer-links a {
  color: #BFE4F7;
  font-size: var(--fs-small);
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.footer-info {
  color: #7FB3CC;
  font-size: var(--fs-small);
  margin: 0;
}

/* Breakpoints */
@media (min-width: 640px) {
  .gallery { flex-direction: row; }
  .gallery figure { flex: 1; }
}

@media (min-width: 1024px) {
  :root {
    --section-pad-mobile: var(--section-pad);
  }

  .hero { padding: 72px 0 64px; }

  .hero-inner {
    grid-template-columns: 360px 1fr;
    gap: 56px;
  }

  .hero-visual { order: 0; }
  .hero-text { order: 0; }
}

@media (min-width: 1280px) {
  .container, .header-inner, .hero-inner {
    max-width: 1140px;
  }
}
