/* =====================================================================
   홈·소개 페이지 전용 요소
   - 헤더·히어로·섹션 카드·푸터 등 공통 디자인은 calc-page.css
   ===================================================================== */

/* ===================== 히어로 버튼 ===================== */
.calc-page .hero-cta{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 18px;border-radius:10px;
  background:#fff;color:var(--ink);
  font-size:13.5px;font-weight:700;text-decoration:none;
  box-shadow:0 8px 20px -8px rgba(0,0,0,.5);
  transition:transform .15s, box-shadow .15s;
}
.calc-page .hero-cta:hover{transform:translateY(-1px);box-shadow:0 12px 24px -8px rgba(0,0,0,.55);}
.calc-page .hero-cta .icon:last-child,
.calc-page .hero-link .icon:last-child{transition:transform .15s;}
.calc-page .hero-cta:hover .icon:last-child,
.calc-page .hero-link:hover .icon:last-child{transform:translateX(2px);}

/* ===================== 발주서 미리보기 카드 (홈 히어로 오른쪽) ===================== */
.calc-page .po-preview{
  background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:20px 20px 16px;
  box-shadow:0 24px 48px -24px rgba(0,0,0,.6);
  backdrop-filter:blur(6px);
  color:#e2e8f0;
}
.calc-page .po-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;}
.calc-page .po-kicker{margin:0 0 4px;font-size:11px;font-weight:700;letter-spacing:.12em;color:#94a3b8;}
.calc-page .po-title{margin:0;font-size:15px;font-weight:800;color:#fff;}
.calc-page .po-badge{
  flex:none;
  font-size:11px;font-weight:700;color:#fde68a;
  padding:4px 9px;border-radius:999px;
  background:rgba(250,204,21,.12);border:1px solid rgba(250,204,21,.35);
}
.calc-page .po-table{
  border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden;
  background:rgba(2,6,23,.25);
}
.calc-page .po-row{
  display:grid;grid-template-columns:72px 1fr auto;gap:10px;align-items:center;
  padding:9px 14px;
  font-size:12.5px;color:#cbd5e1;
  border-top:1px solid rgba(255,255,255,.06);
}
.calc-page .po-row:first-child{border-top:none;}
.calc-page .po-row b{color:#93c5fd;font-weight:800;font-variant-numeric:tabular-nums;}
.calc-page .po-row-head{
  font-size:10.5px;font-weight:700;letter-spacing:.08em;color:#94a3b8;
  background:rgba(255,255,255,.04);
}
.calc-page .po-formula{
  display:flex;align-items:center;gap:8px;
  margin:12px 0;padding:8px 10px;
  border-radius:9px;background:rgba(2,6,23,.35);border:1px dashed rgba(148,163,184,.3);
  overflow:hidden;
}
.calc-page .po-fx{
  flex:none;font-size:11px;font-weight:800;font-style:italic;color:#86efac;
  padding:1px 6px;border-radius:5px;background:rgba(34,197,94,.14);
}
.calc-page .po-formula code{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#e2e8f0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.calc-page .po-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.calc-page .po-file{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;font-weight:600;color:#86efac;
}
.calc-page .po-file .icon{width:14px;height:14px;}
.calc-page .po-total{
  display:inline-flex;align-items:baseline;gap:8px;
  font-size:17px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums;
}
.calc-page .po-total small{font-size:11.5px;font-weight:600;color:#94a3b8;}

/* ===================== 계산기 카드 ===================== */
.calc-page .tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.calc-page .tool-card{
  --tone:#2563eb;--tone-soft:#eff6ff;--tone-line:#dbeafe;
  position:relative;
  display:flex;flex-direction:column;
  padding:24px 24px 22px;
  border:1px solid var(--line);border-radius:14px;
  background:
    radial-gradient(420px 160px at 100% 0%, var(--tone-soft), transparent 70%),
    #fff;
  text-decoration:none;color:inherit;
  transition:transform .15s, box-shadow .15s, border-color .15s;
}
.calc-page .tool-trims{--tone:#4f46e5;--tone-soft:#eef2ff;--tone-line:#e0e7ff;}
.calc-page .tool-card:hover{
  transform:translateY(-2px);
  border-color:var(--tone-line);
  box-shadow:0 18px 36px -20px rgba(15,23,42,.35);
}
.calc-page .tool-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.calc-page .tool-icon{
  flex:none;
  width:44px;height:44px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,#3b82f6,var(--tone));
  box-shadow:0 8px 16px -8px var(--tone);
}
.calc-page .tool-icon .icon{width:21px;height:21px;}
.calc-page .tool-tag{
  font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--tone);
  padding:5px 10px;border-radius:999px;
  background:var(--tone-soft);border:1px solid var(--tone-line);
}
.calc-page .tool-card h3{margin:0 0 8px;font-size:19px;font-weight:800;letter-spacing:-.01em;color:var(--ink);}
.calc-page .tool-card > p{margin:0 0 16px;font-size:13.5px;line-height:1.65;color:var(--muted);}
.calc-page .tool-points{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:8px;}
.calc-page .tool-points li{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--slate);}
.calc-page .tool-points .icon{
  width:18px;height:18px;padding:3px;border-radius:50%;
  color:var(--tone);background:var(--tone-soft);
}
.calc-page .tool-cta{
  margin-top:auto;align-self:flex-start;
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 14px;border-radius:9px;
  font-size:13.5px;font-weight:700;color:#fff;
  background:var(--tone);
  box-shadow:0 8px 16px -10px var(--tone);
}
.calc-page .tool-cta .icon{width:15px;height:15px;transition:transform .15s;}
.calc-page .tool-card:hover .tool-cta .icon{transform:translateX(2px);}

/* ===================== 사용법 3단계 ===================== */
.calc-page .how-steps{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;
  counter-reset:none;
}
.calc-page .how-step{
  position:relative;
  padding:20px 20px 18px;
  border:1px solid var(--line);border-radius:14px;
  background:var(--soft);
}
.calc-page .how-step:not(:last-child)::after{
  content:"";position:absolute;top:42px;right:-19px;width:20px;height:2px;
  background:linear-gradient(90deg,#93c5fd,#c7d2fe);
}
.calc-page .how-icon{
  width:44px;height:44px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--accent);background:#fff;
  box-shadow:inset 0 0 0 1px #dbeafe, 0 6px 14px -10px rgba(37,99,235,.6);
  margin-bottom:12px;
}
.calc-page .how-icon .icon{width:20px;height:20px;}
.calc-page .how-num{
  display:block;margin-bottom:4px;
  font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--accent);
}
.calc-page .how-step h3{margin:0 0 6px;font-size:15px;font-weight:800;color:var(--ink);}
.calc-page .how-step p{margin:0;font-size:13px;line-height:1.6;color:var(--muted);}

/* ===================== 주요 기능 ===================== */
.calc-page .feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.calc-page .feature{
  padding:20px;border-radius:14px;
  border:1px solid var(--line);background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
.calc-page .feature:hover{border-color:#dbeafe;box-shadow:0 12px 28px -20px rgba(15,23,42,.4);}
.calc-page .feature-icon{
  width:40px;height:40px;border-radius:11px;
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff;background:linear-gradient(135deg,#3b82f6,#6366f1);
  box-shadow:0 8px 16px -8px rgba(59,130,246,.7);
  margin-bottom:14px;
}
.calc-page .feature-icon .icon{width:19px;height:19px;}
.calc-page .feature h3{margin:0 0 6px;font-size:14.5px;font-weight:800;color:var(--ink);}
.calc-page .feature p{margin:0;font-size:12.5px;line-height:1.6;color:var(--muted);}

/* ===================== 하단 바로가기 띠 ===================== */
.calc-page .cta-band{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin:6px 0 22px;padding:26px 30px;
  border-radius:16px;color:#fff;
  background:
    radial-gradient(520px 200px at 100% 0%, rgba(99,102,241,.45), transparent 70%),
    linear-gradient(135deg,#0b1628,#1b2f4d);
  box-shadow:0 20px 40px -24px rgba(15,23,42,.8);
}
.calc-page .cta-band h2{margin:0 0 6px;padding:0;border:none;display:block;font-size:19px;font-weight:800;letter-spacing:-.01em;color:#fff;}
.calc-page .cta-band p{margin:0;font-size:13.5px;color:#cbd5e1;}
.calc-page .cta-actions{display:flex;flex-wrap:wrap;gap:10px;flex:none;}

/* ===================== 푸터 링크 ===================== */
.calc-page .footer-links{display:inline-flex;flex-wrap:wrap;gap:16px;}

/* ===================== 소개 페이지 ===================== */
.calc-page .page-hero-compact .page-hero-inner{grid-template-columns:1fr;padding-bottom:84px;}
.calc-page .about-body p{
  margin:0 0 14px;max-width:860px;
  font-size:14.5px;line-height:1.8;color:var(--slate);
}
.calc-page .audience{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin-top:20px;padding-top:18px;border-top:1px dashed var(--line-2);
}
.calc-page .audience-label{
  display:inline-flex;align-items:center;gap:8px;margin-right:6px;
  font-size:13px;font-weight:700;color:var(--ink);
}
.calc-page .audience-label .icon{width:17px;height:17px;color:var(--accent);}
.calc-page .audience-chip{
  font-size:12.5px;font-weight:700;color:var(--accent-dark);
  padding:6px 12px;border-radius:999px;
  background:var(--accent-soft);border:1px solid #dbeafe;
}
.calc-page .tool-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.calc-page .tool-link{
  display:flex;align-items:center;gap:14px;
  padding:16px 18px;border-radius:14px;
  border:1px solid var(--line);background:var(--soft);
  text-decoration:none;color:inherit;
  transition:background .15s, border-color .15s, box-shadow .15s;
}
.calc-page .tool-link:hover{background:#fff;border-color:#bfdbfe;box-shadow:0 12px 24px -18px rgba(15,23,42,.4);}
.calc-page .tool-link .tool-icon{--tone:#2563eb;width:40px;height:40px;}
.calc-page .tool-link:nth-child(2) .tool-icon{--tone:#4f46e5;}
.calc-page .tool-link-text{display:flex;flex-direction:column;gap:3px;min-width:0;}
.calc-page .tool-link-text strong{font-size:14.5px;font-weight:800;color:var(--ink);}
.calc-page .tool-link-text small{font-size:12.5px;color:var(--muted);}
.calc-page .tool-link-arrow{margin-left:auto;width:18px;height:18px;color:#94a3b8;transition:transform .15s,color .15s;}
.calc-page .tool-link:hover .tool-link-arrow{transform:translateX(3px);color:var(--accent);}
.calc-page .contact-box{
  display:flex;align-items:center;gap:12px;
  padding:16px 18px;border-radius:12px;
  font-size:13.5px;font-weight:600;color:#78350f;
  background:#fffbeb;border:1px solid #fde68a;
}
.calc-page .contact-icon{
  flex:none;width:36px;height:36px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  color:#b45309;background:#fef3c7;
}
.calc-page .contact-icon .icon{width:18px;height:18px;}

/* ===================== 반응형 ===================== */
@media (max-width:1100px){
  .calc-page .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .calc-page .po-preview{max-width:560px;}
}
@media (max-width:860px){
  .calc-page .tool-grid,
  .calc-page .tool-links{grid-template-columns:1fr;}
  .calc-page .how-steps{grid-template-columns:1fr;}
  .calc-page .how-step:not(:last-child)::after{top:auto;bottom:-15px;right:auto;left:41px;width:2px;height:14px;background:linear-gradient(180deg,#93c5fd,#c7d2fe);}
  .calc-page .cta-band{flex-direction:column;align-items:flex-start;}
}
@media (max-width:640px){
  .calc-page .feature-grid{grid-template-columns:1fr;}
  .calc-page .tool-card{padding:20px 18px 18px;}
  .calc-page .cta-band{padding:22px 20px;}
  .calc-page .cta-actions{width:100%;}
  .calc-page .cta-actions a{flex:1 1 auto;justify-content:center;}
  .calc-page .hero-actions a{flex:1 1 auto;justify-content:center;}
  .calc-page .po-row{grid-template-columns:58px 1fr auto;padding:8px 12px;}
}
