<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<style>
  @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&display=swap');
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body {
    width: 1080px; height: 1350px;
    font-family: 'Noto Sans KR', sans-serif;
    background: #F7F7FA; color: #14171A;
  }
  .card {
    width: 1080px; height: 1350px;
    padding: 80px 72px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F7FA 100%);
    border-top: 16px solid {{ accent_color }};
  }
  .badge {
    display: inline-block; padding: 8px 20px; border-radius: 999px;
    background: {{ accent_color }}; color: #fff;
    font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  }
  .headline {
    font-size: {{ 96 if page_type == 'cover' else 72 }}px;
    font-weight: 900; line-height: 1.15; letter-spacing: -0.04em;
    margin-top: 32px;
  }
  .body {
    font-size: 40px; font-weight: 400; line-height: 1.55;
    margin-top: 40px; color: #2A2F35;
    white-space: pre-wrap;
  }
  .footer {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 28px; color: #6B7280; font-weight: 500;
  }
  .cta { font-weight: 700; color: {{ accent_color }}; }
</style>
</head>
<body>
<div class="card">
  <div>
    <span class="badge">{{ page_type|upper }}</span>
    <h1 class="headline">{{ headline }}</h1>
    <p class="body">{{ body }}</p>
  </div>
  <div class="footer">
    <span>{{ page_no }} / {{ total_pages }}</span>
    {% if cta %}<span class="cta">{{ cta }}</span>{% endif %}
  </div>
</div>
</body>
</html>
