/*
 * 다행 ENCOURAGEMENT 서비스 소개서 원본 디자인을 이식한 스타일시트입니다.
 */

:root{
  --sage:        #2E6B54;
  --sage-deep:   #1E4B3B;
  --sage-tint:   #E7EFE9;
  --bronze:      #8A6A34;
  --ink:         #2B2620;
  --cream:       #F5F1E6;
  --cream-2:     #EDE7D8;
  --line:        #C9BFA6;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--cream);
  color: var(--ink);
  font-family:"Noto Sans KR", sans-serif;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{ color: var(--sage-deep); }
.page{
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 40px;
}
.logo-hero{
  text-align:center;
  margin-bottom: 34px;
}
.logo-hero img{
  display:block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero{
  text-align:center;
  padding: 8px 0 36px;
}
.hero .kicker{
  font-size:13.5px;
  color:var(--bronze);
  font-weight:500;
  margin:0 0 14px;
}
.hero h1{
  font-family:"Noto Serif KR", serif;
  font-weight:700;
  font-size:34px;
  line-height:1.42;
  color:var(--sage-deep);
  margin:0 0 18px;
}
.hero p{
  font-size:16.5px;
  color:var(--ink);
  max-width:480px;
  margin:0 auto;
}

.divider{
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 34px 0;
}
.divider svg{ width:120px; height:28px; }

section{ margin-bottom: 6px; }
.section-inner{ padding: 18px 0 30px; }

h2{
  font-family:"Noto Serif KR", serif;
  font-weight:700;
  font-size:21px;
  color:var(--sage-deep);
  margin:0 0 14px;
}
p{ margin:0 0 12px; font-size:15.5px; }
.lede{ max-width:600px; }

.stat-card{
  background: var(--sage-tint);
  border-left: 3px solid var(--sage);
  padding: 16px 20px;
  border-radius: 2px;
  margin-top: 16px;
}
.stat-card p{ margin:0; font-size:15px; color:var(--sage-deep); font-weight:500; }
.cite{ font-size:12px; color:var(--ink); opacity:0.55; margin-top:6px; }

.features{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-top: 20px;
}
.feature{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.feature .leaf{ flex-shrink:0; margin-top:3px; }
.feature .leaf svg{ width:20px; height:20px; }
.feature h3{
  font-family:"Noto Sans KR", sans-serif;
  font-weight:700;
  font-size:16px;
  margin:0 0 4px;
  color:var(--ink);
}
.feature p{ margin:0; font-size:14.5px; color:var(--ink); opacity:0.85; }

.compare{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.compare .col{
  background: var(--cream-2);
  padding: 16px 14px;
  border-radius: 3px;
}
.compare .col.highlight{
  background: var(--sage);
  color: #fff;
}
.compare .col h4{
  font-size:13px; margin:0 0 8px; font-weight:700; opacity:0.75;
}
.compare .col.highlight h4{ opacity:0.85; }
.compare .col p{ font-size:14px; margin:0; }
.compare .col.highlight p{ color:#fff; }

.target-box{
  background: var(--cream-2);
  padding: 20px 22px;
  border-radius: 3px;
  margin-top: 16px;
  font-size:15px;
}
.target-list{
  margin:0; padding-left:20px;
}
.target-list li{
  margin-bottom:8px;
}
.target-list li:last-child{ margin-bottom:0; }

.founder{
  display:flex;
  gap:20px;
  align-items:flex-start;
  margin-top:16px;
}
.founder-avatar{
  flex-shrink:0;
  width:64px; height:64px;
  border-radius:50%;
  background:#48937F;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.founder-avatar img{
  width:100%; height:100%;
  object-fit:contain;
}
.founder-body{ flex:1; }
.founder-name{
  font-family:"Noto Serif KR", serif;
  font-weight:700;
  font-size:17px;
  color:var(--sage-deep);
  margin-bottom:8px;
}
.founder-name span{
  display:inline-block;
  font-family:"Noto Sans KR", sans-serif;
  font-weight:400;
  font-size:13px;
  color:var(--ink);
  opacity:0.6;
  margin-left:8px;
}
.founder-list{
  margin:12px 0 0;
  padding-left:18px;
  font-size:14px;
}
.founder-list li{ margin-bottom:6px; }
.founder-quote{
  margin-top:14px;
  font-size:13.5px;
  font-style:italic;
  color:var(--bronze);
}
.founder-sns{
  margin-top:10px;
  font-size:13px;
}
.founder-sns a{ color:var(--sage-deep); }

.cta{
  background: var(--sage-deep);
  color:#fff;
  border-radius: 6px;
  padding: 34px 30px;
  text-align:center;
  margin-top: 10px;
}
.cta h2{ color:#fff; }
.cta p{ color:#fff; opacity:0.9; max-width:480px; margin:0 auto 22px; }
.cta-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}
.cta-badge{
  display:inline-block;
  font-size:12px;
  color:#fff;
  opacity:0.85;
  border:1px solid rgba(255,255,255,0.4);
  border-radius:20px;
  padding:5px 14px;
  margin:0 0 16px;
}
.cta-button{
  display:inline-block;
  background:#fff;
  color:var(--sage-deep);
  font-weight:700;
  font-size:15px;
  padding:13px 26px;
  border-radius:4px;
  text-decoration:none;
  border: none;
  cursor: pointer;
}
.cta-button-outline{
  display:inline-block;
  background:transparent;
  color:#fff;
  font-weight:700;
  font-size:15px;
  padding:12px 25px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,0.6);
  text-decoration:none;
}
footer{
  text-align:center;
  padding: 42px 0 0;
}
footer .tagline{
  font-family:"Noto Serif KR", serif;
  font-size:15px;
  color:var(--sage-deep);
  margin-bottom: 14px;
}
footer .sources{
  font-size:11px;
  color:var(--ink);
  opacity:0.5;
  max-width:560px;
  margin:0 auto;
  line-height:1.6;
}

@media (max-width:520px){
  .hero h1{ font-size:27px; }
  .compare{ grid-template-columns:1fr; }
}

/* ---------- 신청/문의 폼 & 관리자 화면 (신규 추가) ---------- */

.form-page{
  max-width: 480px;
}
.form-page h1{
  font-family:"Noto Serif KR", serif;
  font-weight:700;
  font-size:26px;
  color:var(--sage-deep);
  margin:0 0 8px;
}
.form-page .form-desc{
  font-size:14.5px;
  color:var(--ink);
  opacity:0.75;
  margin-bottom:24px;
}
.back-link{
  display:inline-block;
  font-size:13.5px;
  color:var(--sage-deep);
  opacity:0.7;
  margin-bottom:20px;
  text-decoration:none;
}
.back-link:hover{ opacity:1; }

.secondary-button{
  -webkit-appearance:none;
  appearance:none;
  display:inline-block;
  background:transparent;
  border:1px solid var(--sage-deep);
  color:var(--sage-deep);
  font-family:inherit;
  font-size:13.5px;
  font-weight:700;
  line-height:normal;
  padding:8px 16px;
  border-radius:4px;
  text-decoration:none;
  margin-top:20px;
  cursor:pointer;
}
.secondary-button:hover{ background:var(--sage-tint); }

.field{ margin-bottom:18px; }
.field label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  margin-bottom:6px;
}
.field input[type=text],
.field input[type=tel],
.field input[type=number],
.field input[type=password],
.field textarea{
  width:100%;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:15px;
  font-family:inherit;
  background:#fff;
  color:var(--ink);
}
.field textarea{ min-height:120px; resize:vertical; }
.field input:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--sage);
}
.field-hint{ font-size:12.5px; color:var(--ink); opacity:0.55; margin-top:5px; }

.error-summary{
  background: #FBEAEA;
  border-left:3px solid #B23B3B;
  color:#7A2A2A;
  padding:14px 18px;
  border-radius:2px;
  font-size:14px;
  margin-bottom:20px;
}
.error-summary p{ margin:0 0 4px; }
.error-summary p:last-child{ margin-bottom:0; }

.submit-button{
  display:inline-block;
  width:100%;
  background: var(--sage-deep);
  color:#fff;
  font-weight:700;
  font-size:15.5px;
  padding:14px 20px;
  border-radius:4px;
  border:none;
  cursor:pointer;
  text-align:center;
}
.submit-button:hover{ background: var(--sage); }

.thanks-page{
  text-align:center;
  padding: 40px 0;
}
.thanks-page h1{
  font-family:"Noto Serif KR", serif;
  color:var(--sage-deep);
  font-size:26px;
  margin-bottom:14px;
}
.thanks-page p{ font-size:15.5px; }

.flash-wrap{
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 28px;
}
.flash-notice{
  background: var(--sage-tint);
  color: var(--sage-deep);
  border-left:3px solid var(--sage);
  padding:12px 18px;
  border-radius:2px;
  font-size:14px;
  margin-bottom:20px;
}

/* 관리자 화면 */
.admin-page .page{ max-width:960px; }

.dashboard-stats{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:28px;
}
.stat-tile{
  background:#fff;
  border-left:3px solid var(--sage);
  border-radius:3px;
  padding:18px 22px;
  min-width:180px;
  flex:1;
}
.stat-tile-number{
  font-family:"Noto Serif KR", serif;
  font-size:32px;
  font-weight:700;
  color:var(--sage-deep);
}
.stat-tile-label{
  font-size:13.5px;
  color:var(--ink);
  opacity:0.7;
  margin:4px 0 10px;
}
.stat-tile-link{
  font-size:13px;
  color:var(--sage-deep);
  text-decoration:none;
}
.stat-tile-link:hover{ text-decoration:underline; }

.dashboard-columns{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
}
.dashboard-col h3{
  font-family:"Noto Serif KR", serif;
  color:var(--sage-deep);
  font-size:15px;
  margin:0 0 10px;
}
.dashboard-list{
  list-style:none;
  margin:0;
  padding:0;
  background:#fff;
  border-radius:3px;
}
.dashboard-list li{
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  font-size:13.5px;
}
.dashboard-list li:last-child{ border-bottom:none; }
.dashboard-list a{ color:var(--ink); text-decoration:none; }
.dashboard-list a:hover{ color:var(--sage-deep); }

.phone-cell{ white-space:nowrap; }
.phone-cell .reveal-btn{
  background:none;
  border:none;
  color:var(--sage-deep);
  font-size:12px;
  text-decoration:underline;
  cursor:pointer;
  padding:0;
  margin-left:8px;
  font-family:inherit;
}
.admin-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px;
  flex-wrap:wrap;
  gap:12px;
}
.admin-header h1{
  font-family:"Noto Serif KR", serif;
  color:var(--sage-deep);
  font-size:24px;
  margin:0;
}
.admin-nav{ display:flex; gap:16px; align-items:center; font-size:14px; }
.admin-nav a{ color:var(--sage-deep); text-decoration:none; }
.admin-nav a:hover{ text-decoration:underline; }
.admin-nav .logout-btn{
  background:none; border:none; color:var(--sage-deep);
  font-size:14px; cursor:pointer; padding:0; font-family:inherit;
  text-decoration:underline;
}

.admin-search-form{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.admin-search-form input[type=text]{
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:14px;
  font-family:inherit;
  background:#fff;
  color:var(--ink);
  min-width:220px;
}
.admin-search-form input[type=submit]{
  width:auto;
}

.admin-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  font-size:14px;
}
.admin-table th, .admin-table td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid var(--line);
}
.admin-table th{
  background: var(--cream-2);
  color:var(--sage-deep);
  font-weight:700;
}
.admin-table tr:last-child td{ border-bottom:none; }
.admin-table tr.clickable-row{ cursor:pointer; }
.admin-table tr.clickable-row:hover{ background: var(--cream-2); }
.admin-empty{
  padding:30px;
  text-align:center;
  color:var(--ink);
  opacity:0.6;
  background:#fff;
}

.login-box{
  max-width:360px;
  margin: 60px auto 0;
}
.login-box h1{
  font-family:"Noto Serif KR", serif;
  color:var(--sage-deep);
  font-size:22px;
  text-align:center;
  margin-bottom:24px;
}

@media print{
  body{ background:#fff; }
  .page{ padding:24px 20px; max-width:100%; }
  .cta{ background:var(--sage-deep) !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .stat-card, .compare .col, .target-box{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
