/* index.html 전용 스타일 */

/* ── 상단 조회 영역 ─────────────────────────────── */
.hero {
  background: var(--blush);
}

.hero-in {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  text-align: center;
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--subtext);
}

.hero .search-box {
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 32px -14px rgba(217, 77, 130, 0.35);
}

.hero .search-box input {
  flex: 1 1 auto;
  height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 17px;
  background: transparent;
}

.hero .search-box input:focus {
  background: var(--soft);
  box-shadow: none;
}

.hero .search-box button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--point);
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
}

.hero .search-box button:hover {
  background: var(--point-dark);
  transform: none;
  box-shadow: none;
}

.hero .message:empty {
  min-height: 0;
  margin: 0;
}

.hero .result {
  margin-bottom: 16px;
  text-align: left;
}

.hero .card {
  background: #fff;
  border-color: #f6dbe6;
}

.hero-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--subtext);
}

/* ── 도구 카드 ─────────────────────────────────── */
.home-title {
  margin: 0 0 28px;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px) rotate(-0.6deg);
}

.tool-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.tool-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--subtext);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: var(--text);
}

.tool-icon.is-yellow { background: var(--yellow); }
.tool-icon.is-pink { background: #ffd6e5; }
.tool-icon.is-blue { background: #d7ecff; }
.tool-icon.is-green { background: #e3f7d9; }

.tool-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cut);
  vertical-align: 2px;
}

/* ── 계산기·누끼 패널 ──────────────────────────── */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.btn-panel-close {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--subtext);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-panel-close:hover {
  color: var(--text);
  background: var(--soft);
}

.tool-panel .calc-panel {
  margin-top: 20px;
}

.desc-sub {
  font-size: 13px;
  color: #9a919e;
}

/* ── 주문 연결 ─────────────────────────────────── */
.order-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 36px;
  background: #fff8dc;
}

.order-cta h2 {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 700;
}

.order-cta p {
  margin: 0;
  font-size: 15px;
  color: var(--subtext);
}

.order-cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-pink,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn-pink {
  background: var(--point);
  color: #fff;
}

.btn-pink:hover {
  background: var(--point-dark);
}

.btn-white {
  background: #fff;
  color: var(--text);
  border: 1.5px solid #eadfb4;
}

.btn-white:hover {
  border-color: #d9c98a;
}

/* ── 반응형 ───────────────────────────────────── */
@media (max-width: 960px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .hero-in {
    padding: 48px 16px 40px;
  }

  .hero .search-box {
    flex-direction: column;
  }

  .hero .search-box input,
  .hero .search-box button {
    min-height: 52px;
  }

  .home-title {
    font-size: 21px;
    margin-bottom: 24px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .order-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 22px;
  }

  .order-cta-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card {
    transition: none;
  }
}
