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

:root{
  --color-primary:#1B2A41;
  --color-bg:#F5F7FA;
  --color-accent:#FFB703;
  --color-surface:#FFFFFF;
  --color-text:#1B2A41;
  --color-text-muted:#4A5568;
  --color-border:#DDE3EA;

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

  --scale-ratio:1.25;
  --fs-base:1rem;
  --fs-sm:0.85rem;
  --fs-h3:1.5625rem;
  --fs-h2:1.953rem;
  --fs-h1:3.0518rem;

  --space-section:96px;
  --space-section-mobile:64px;
  --radius:12px;

  --max-width:1120px;
}

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

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

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

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

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

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

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

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

/* focus ring */
a:focus-visible,
button:focus-visible,
summary:focus-visible{
  outline:3px solid var(--color-accent);
  outline-offset:2px;
  border-radius:4px;
}

/* header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--color-primary);
  min-height:64px;
  display:flex;
  align-items:center;
}

.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  width:100%;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.logo{
  color:#fff;
  font-family:var(--font-heading);
  font-weight:700;
  font-size:1.25rem;
  letter-spacing:-0.01em;
}

.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:0.95rem;
  transition:transform 0.15s ease, background-color 0.15s ease;
}

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

.btn-primary{
  background:var(--color-accent);
  color:var(--color-primary);
}

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

.btn-large{
  padding:14px 28px;
  font-size:1.1rem;
}

/* hero */
.hero{
  background:linear-gradient(180deg,#1B2A41 0%,#22344F 100%);
  padding:var(--space-section-mobile) 0;
}

.hero-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
  display:flex;
  flex-direction:column;
  gap:32px;
}

.hero-text h1{ color:#fff; }

.hero-lede{
  color:#E4E9EF;
  font-size:1.1rem;
  max-width:52ch;
}

.hero .btn-primary{ margin-top:8px; }

.price-card{
  background:var(--color-surface);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:0 12px 32px rgba(0,0,0,0.18);
}

.price-card h2{
  font-size:1.15rem;
  margin-bottom:1em;
}

.price-card-list{
  list-style:none;
  margin:0 0 12px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.price-card-list li{
  display:grid;
  grid-template-columns:88px 1fr 56px;
  align-items:center;
  gap:10px;
  font-size:0.85rem;
}

.pc-label{ color:var(--color-text-muted); }

.pc-bar{
  display:block;
  height:10px;
  background:#E4E9EF;
  border-radius:999px;
  overflow:hidden;
}

.pc-fill{
  display:block;
  height:100%;
  background:var(--color-accent);
  border-radius:999px;
  width:0;
  animation:fill-grow 1s ease forwards;
}

@keyframes fill-grow{
  from{ width:0; }
}

.pc-value{
  text-align:right;
  font-weight:700;
  color:var(--color-primary);
}

.price-card-note{
  font-size:0.78rem;
  color:var(--color-text-muted);
  margin:0;
}

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

/* sections */
.section{
  padding:var(--space-section-mobile) 0;
}

.problem{ background:var(--color-bg); }
.cost-breakdown{ background:var(--color-surface); }
.chart-section{ background:var(--color-bg); }
.table-section{ background:var(--color-surface); }
.gallery-section{ background:var(--color-bg); }
.faq-section{ background:var(--color-surface); }

/* chart */
.range-chart{
  width:100%;
  height:auto;
  display:block;
  margin:24px 0 8px;
}

.chart-caption{
  font-size:0.85rem;
  color:var(--color-text-muted);
}

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

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

caption{
  text-align:left;
  padding:14px 16px;
  font-weight:700;
  color:var(--color-primary);
  background:#EDF1F5;
}

th,td{
  padding:12px 16px;
  text-align:left;
  border-bottom:1px solid var(--color-border);
  font-size:0.92rem;
}

thead th{
  background:var(--color-primary);
  color:#fff;
  font-weight:700;
}

tbody th{
  color:var(--color-primary);
  font-weight:700;
  white-space:nowrap;
}

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

.gallery figure{
  margin:0;
  max-width:400px;
  width:100%;
  text-align:center;
}

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

.gallery figcaption{
  margin-top:10px;
  font-size:0.85rem;
  color:var(--color-text-muted);
}

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

details{
  background:var(--color-bg);
  border:1px solid var(--color-border);
  border-radius:var(--radius);
  padding:14px 18px;
}

summary{
  cursor:pointer;
  font-weight:700;
  color:var(--color-primary);
}

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

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

.cta-inner h2{ color:#fff; }
.cta-inner p{ color:#E4E9EF; max-width:56ch; margin-left:auto; margin-right:auto; }

/* footer */
.site-footer{
  background:#12202F;
  color:#C9D2DC;
  padding:40px 0;
}

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

.footer-links a{
  color:#C9D2DC;
  font-size:0.88rem;
  text-decoration:underline;
}

.footer-info{
  font-size:0.8rem;
  color:#8A97A6;
  margin:0;
}

/* breakpoints */
@media (min-width:640px){
  .gallery{ flex-direction:row; flex-wrap:wrap; justify-content:center; }
  .gallery figure{ width:calc(50% - 12px); }
}

@media (min-width:1024px){
  .section{ padding:var(--space-section) 0; }
  .hero{ padding:var(--space-section) 0; }
  .hero-inner{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }
  .hero-text{ flex:1 1 55%; }
  .price-card{ flex:0 0 380px; }
  .gallery figure{ width:calc(33.333% - 16px); }
}

@media (min-width:1280px){
  .hero-lede{ font-size:1.2rem; }
}
