/* 파일조 쿠폰 - 공통 스타일 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1e6fdb;
  --primary-dark: #0c4a9e;
  --primary-light: #e8f1fd;
  --gold: #f5b942;
  --gold-dark: #d99320;
  --text: #1a2238;
  --text-light: #5b6478;
  --bg: #f7f9fc;
  --white: #ffffff;
  --border: #e3e8ef;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(30,111,219,0.08);
  --shadow-hover: 0 8px 30px rgba(30,111,219,0.15);
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--primary-dark);
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a {
  color: var(--text); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: all .15s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary-dark); text-decoration: none; }
.main-nav a.active { color: var(--primary); background: var(--primary-light); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e6fdb 0%, #0c4a9e 100%);
  color: var(--white);
  padding: 60px 20px 70px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; margin-bottom: 14px; line-height: 1.3;
}
.hero p { font-size: 17px; opacity: .92; max-width: 720px; margin: 0 auto 24px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.18);
  padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 600;
  margin-bottom: 16px; backdrop-filter: blur(8px);
}

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 50px 0; }
section h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; margin-bottom: 10px;
  color: var(--primary-dark);
}
section .sub {
  color: var(--text-light); font-size: 16px; margin-bottom: 28px;
}

/* Coupon Cards */
.coupon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.coupon-card {
  background: var(--white); border: 2px dashed var(--primary);
  border-radius: var(--radius); padding: 24px;
  position: relative; transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.coupon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.coupon-card .label {
  display: inline-block; background: var(--gold); color: #5a3d00;
  font-weight: 700; font-size: 12px; padding: 4px 10px;
  border-radius: 99px; margin-bottom: 12px;
}
.coupon-card .code {
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  font-size: 20px; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); padding: 14px;
  border-radius: 8px; text-align: center; letter-spacing: 1px;
  margin-bottom: 14px; word-break: break-all;
}
.coupon-card .desc { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }
.coupon-card .actions { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 8px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: none; transition: all .15s;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--white); flex: 1; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: var(--white); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); text-decoration: none; }
.btn-gold { background: var(--gold); color: #5a3d00; }
.btn-gold:hover { background: var(--gold-dark); }

/* Feature cards */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature img { border-radius: 8px; margin-bottom: 14px; aspect-ratio: 4/3; object-fit: cover; }
.feature h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.feature p { color: var(--text-light); font-size: 14px; }

/* Content blocks */
.content-block {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.content-block h3 {
  font-size: 19px; margin-bottom: 14px; color: var(--primary-dark);
  display: flex; align-items: center; gap: 8px;
}
.content-block p, .content-block li { color: var(--text); font-size: 15px; margin-bottom: 8px; }
.content-block ul, .content-block ol { padding-left: 22px; }
.content-block ul li { list-style: disc; margin-bottom: 6px; }
.content-block ol li { list-style: decimal; margin-bottom: 6px; }

/* Two-column */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* Table */
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-top: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px;
}
.compare-table th { background: var(--primary); color: var(--white); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #fafbfd; }
.compare-table .highlight { color: var(--success); font-weight: 700; }
.compare-table .warn { color: var(--danger); font-weight: 600; }

/* Calculator */
.calc-box {
  background: linear-gradient(135deg, #fff 0%, #f0f6ff 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.calc-row { margin-bottom: 16px; }
.calc-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.calc-row input, .calc-row select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}
.calc-row input:focus, .calc-row select:focus { outline: none; border-color: var(--primary); }
.calc-result {
  background: var(--primary); color: var(--white);
  padding: 18px; border-radius: 8px; margin-top: 12px;
  font-size: 16px; font-weight: 600;
}
.calc-result .big { font-size: 28px; font-weight: 800; display: block; margin-top: 4px; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a2238; color: var(--white); padding: 12px 22px;
  border-radius: 99px; font-size: 14px; font-weight: 600;
  opacity: 0; transition: all .25s; z-index: 1000; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* FAQ */
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  padding: 16px 20px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px;
}
.faq-q:hover { background: var(--primary-light); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: all .25s; color: var(--text-light); font-size: 14px;
}
.faq-item.open .faq-a { padding: 0 20px 16px; max-height: 500px; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }

/* Footer */
.site-footer {
  background: #0c1529; color: #b5bdd0;
  padding: 36px 20px 28px; margin-top: 40px;
  font-size: 13px; text-align: center;
}
.site-footer a { color: #8ebbff; }
.site-footer .footer-links { margin-bottom: 14px; }
.site-footer .footer-links a { margin: 0 10px; }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin: 24px 0;
}
.stat {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--primary); display: block; }
.stat .lbl { font-size: 13px; color: var(--text-light); margin-top: 4px; }

@media (max-width: 640px) {
  .main-nav { gap: 8px; }
  .main-nav a { padding: 6px 10px; font-size: 13px; }
  .logo { font-size: 16px; }
  .logo img { width: 30px; height: 30px; }
  .hero { padding: 40px 16px 50px; }
  section { padding: 36px 0; }
}
