/* 콩나물마켓 - 홈(랜딩) 전용 스타일. 버튼/모달/카드 등 공용 컴포넌트는 site.css에 있습니다. */

/* ---------- 헤더 우측(로그인 상태) ---------- */
.topbar .nav-right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.user-chip .balance { font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.bell { position: relative; cursor: pointer; border: none; background: none; font-size: 1.05rem; padding: 4px; }
.bell .badge {
  position: absolute; top: -4px; right: -6px; background: var(--red); color: #fff;
  font-size: 0.62rem; border-radius: 999px; padding: 1px 5px; font-weight: 700;
}

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; background: #FBF7EE; border-bottom: 1px solid var(--line); }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; z-index: 0;
}
.hero-blob.blob-1 { width: 420px; height: 420px; background: var(--lime); top: -160px; left: -120px; }
.hero-blob.blob-2 { width: 380px; height: 380px; background: var(--yellow); bottom: -180px; right: -100px; opacity: 0.28; }
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto; padding: 58px 20px 46px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.eyebrow-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green-dark); font-weight: 700;
  font-size: 0.8rem; padding: 7px 15px 7px 11px; border-radius: 999px; margin-bottom: 18px;
}
.dot-ping { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; flex-shrink: 0; }
.dot-ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: dot-ping 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes dot-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
.hero-copy h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.28; margin: 0 0 14px; letter-spacing: -0.025em; font-weight: 800; }
.hero-copy h1 .accent { color: var(--green); }
.hero-copy p.lead { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; margin: 0 0 24px; max-width: 460px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-ctas .btn { padding: 13px 26px; font-size: 0.95rem; }
.trust-dots { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.dot-stack { display: inline-flex; }
.dot-stack i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #FBF7EE; margin-left: -8px; display: block; }
.dot-stack i:first-child { margin-left: 0; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.sprout-illustration { width: 100%; max-width: 340px; filter: drop-shadow(0 20px 40px rgba(30,60,25,0.16)); }
.sprout-svg { width: 100%; height: auto; display: block; }
.float-badge {
  position: absolute; background: #fff; border-radius: 999px; padding: 9px 16px;
  font-size: 0.8rem; font-weight: 700; box-shadow: var(--shadow-2); white-space: nowrap;
}
.float-badge.badge-top { top: 6%; right: 2%; }
.float-badge.badge-bottom { bottom: 8%; right: -2%; }
@media (max-width: 640px) {
  .float-badge { font-size: 0.72rem; padding: 7px 12px; }
  .float-badge.badge-bottom { right: 4%; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 0.92rem; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.1rem; color: var(--ink-soft); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.7; }
.faq-item p a { color: var(--green-dark); font-weight: 600; }

/* ---------- 실시간 티커 (시그니처) ---------- */
.ticker-bar { background: var(--ink); color: #eef3e6; overflow: hidden; }
.ticker-head {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px 0; display: flex;
  justify-content: space-between; align-items: center; font-size: 0.75rem; color: #aab39a;
}
.ticker-head .dot { color: var(--lime); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.ticker-track-wrap { position: relative; padding: 8px 0 14px; }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: ticker-scroll 38s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item { display: flex; align-items: baseline; gap: 8px; font-size: 0.84rem; white-space: nowrap; text-decoration: none; color: inherit; }
.tick-item .nm { color: #cdd6bd; }
.tick-item .pr { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 공통 섹션 ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 54px 20px 8px; scroll-margin-top: 76px; }
.section > .sec-head { margin-bottom: 24px; }
.section .sec-eyebrow { font-size: 0.76rem; font-weight: 700; color: var(--green); letter-spacing: 0.08em; }
.section h2.sec-title { font-size: 1.5rem; margin: 6px 0 8px; letter-spacing: -0.02em; font-weight: 800; }
.section .sec-sub { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ---------- 카탈로그 ---------- */
.cat-tabs { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.cat-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 19px;
  font-size: 0.86rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .13s, color .13s, border-color .13s;
}
.cat-tabs button:hover { background: var(--green-soft); }
.cat-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.model-card img.thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 11px; margin-bottom: 13px; display: block;
}
.model-card .buy-row { margin-top: 13px; }
.model-card .buy-row .btn { width: 100%; }
.stock-note { font-size: 0.72rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- 신뢰 섹션 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 15px; margin-top: 22px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.step-card .ico { font-size: 1.5rem; margin-bottom: 10px; }
.step-card h3 { margin: 0 0 8px; font-size: 0.98rem; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.68; }

/* ---------- 리뷰/공지 ---------- */
.split-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; margin-bottom: 10px; box-shadow: var(--shadow-1); }
.review-card .stars { color: var(--yellow); letter-spacing: 2px; }
.review-card .meta { font-size: 0.76rem; color: var(--ink-soft); margin-top: 6px; }
.review-card p.cmt { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.6; }
.ann-item { border-bottom: 1px solid var(--line); padding: 13px 2px; }
.ann-item .pin { color: var(--amber-ink); font-size: 0.72rem; background: var(--amber-bg); border-radius: 6px; padding: 2px 7px; margin-right: 6px; }
.ann-item .ttl { font-weight: 700; font-size: 0.9rem; }
.ann-item .bd { color: var(--ink-soft); font-size: 0.82rem; margin-top: 4px; line-height: 1.6; }

/* ---------- 푸터 ---------- */
footer.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: #fff; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 34px 20px 44px; font-size: 0.8rem; color: var(--ink-soft); }
.footer-inner .links { margin-bottom: 14px; }
.footer-inner .links a { margin-right: 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-inner .links a:hover { color: var(--green-dark); }
.footer-inner .biz { line-height: 1.8; }
.footer-inner .demo-tag { margin-top: 14px; color: var(--info-ink); background: var(--info-bg); display: inline-block; padding: 6px 12px; border-radius: 8px; }

/* ---------- 인증/가입 ---------- */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-tabs button {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 11px;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  transition: background .13s, color .13s;
}
.auth-tabs button:hover { background: var(--green-soft); }
.auth-tabs button.active { background: var(--green); border-color: var(--green); color: #fff; }
.dev-code-note { background: var(--info-bg); color: var(--info-ink); border-radius: 10px; padding: 10px 13px; font-size: 0.78rem; margin: 10px 0; line-height: 1.6; }

/* ---------- 구매 모달 선택지 ---------- */
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt-grid label.opt {
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; cursor: pointer;
  font-size: 0.85rem; display: flex; justify-content: space-between; gap: 6px; align-items: center;
  transition: border-color .13s, box-shadow .13s, background .13s;
}
.opt-grid label.opt:hover { background: var(--paper); }
.opt-grid label.opt.on { border-color: var(--green); box-shadow: 0 0 0 1.5px var(--green) inset; background: var(--green-soft); }
.opt-grid label.opt.off { opacity: 0.45; cursor: not-allowed; }
.opt-grid label.opt .p { font-weight: 700; color: var(--green-dark); font-variant-numeric: tabular-nums; }

/* ---------- 마이페이지 ---------- */
.my-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.my-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 15px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .13s, color .13s;
}
.my-tabs button:hover { background: var(--green-soft); }
.my-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.my-pane { display: none; }
.my-pane.active { display: block; }
.kv-box { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; margin-bottom: 14px; font-size: 0.88rem; }
.kv-box .big { font-size: 1.4rem; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.kv-box .ttl { font-weight: 700; }
.kv-box .sub { color: var(--ink-soft); font-size: 0.78rem; margin-top: 3px; }
.kv-box .acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-visual .float-card { left: 10px; }
  .split-2 { grid-template-columns: 1fr; }
  header.topbar { flex-wrap: wrap; gap: 8px; }
}
