/* ==========================================================
   유먼스 아사이베리 분말 랜딩페이지
   - 외부 폰트/라이브러리 없음 (Core Web Vitals 최적화)
   - 아사이 보라 컬러 테마
   ========================================================== */

:root {
  --color-primary: #5b2a86;      /* 아사이 퍼플 */
  --color-primary-dark: #431f63;
  --color-accent: #a4508b;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f3fa;
  --color-text: #241b2f;
  --color-text-muted: #6d6478;
  --color-border: #e5dcee;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(67, 31, 99, 0.10);
  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ----- 접근성 ----- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-primary); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ----- 버튼 ----- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-weight: 700; border-radius: 999px; transition: background .2s, transform .1s;
  text-align: center; font-size: 1rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-ghost:hover { background: var(--color-bg-alt); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ----- 헤더 ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { text-decoration: none; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); }
.site-header nav { margin-left: auto; }
.nav-list { display: flex; gap: 20px; list-style: none; }
.nav-list a { text-decoration: none; color: var(--color-text); font-weight: 500; font-size: .95rem; }
.nav-list a:hover { color: var(--color-primary); }

/* ----- 히어로 ----- */
.hero { background: linear-gradient(160deg, #f7f3fa 0%, #ece0f5 100%); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  align-items: center; padding: 72px 20px;
}
.hero-eyebrow { color: var(--color-accent); font-weight: 700; letter-spacing: .02em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.25; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero-sub { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 28px; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; color: var(--color-primary-dark); font-weight: 600; font-size: .95rem; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ----- 요약 ----- */
.summary { background: var(--color-primary); color: #fff; }
.summary-text { padding: 28px 0; font-size: 1.05rem; max-width: 52em; margin: 0 auto; text-align: center; }

/* ----- 공통 섹션 ----- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 36px; text-align: center; }
.section-note { text-align: center; color: var(--color-text-muted); }

/* ----- 제품 특징 ----- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 28px 22px; box-shadow: var(--shadow);
}
.benefit-card h3 { color: var(--color-primary); margin-bottom: 10px; font-size: 1.1rem; }
.benefit-card p { color: var(--color-text-muted); font-size: .95rem; }

/* ----- 제품 정보 표 ----- */
.info-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: .95rem; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 130px; background: var(--color-bg-alt); color: var(--color-primary-dark); font-weight: 700; }

/* ----- 상세 이미지 ----- */
.detail-images { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 860px; margin: 0 auto; }

/* ----- 레시피 ----- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.recipe-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.recipe-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.recipe-card h3 { padding: 16px 18px 4px; color: var(--color-primary); font-size: 1.05rem; }
.recipe-card p { padding: 0 18px 18px; color: var(--color-text-muted); font-size: .92rem; }

/* ----- FAQ ----- */
.faq-item {
  max-width: 720px; margin: 0 auto 12px; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; 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: "＋"; color: var(--color-primary); font-weight: 400; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 20px 18px; color: var(--color-text-muted); }

/* ----- 구매 ----- */
.purchase-card {
  max-width: 560px; margin: 0 auto; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.purchase-summary { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.purchase-summary img { border-radius: 10px; flex-shrink: 0; }
.purchase-name { font-size: 1.1rem; margin-bottom: 6px; }
.purchase-price strong { font-size: 1.4rem; color: var(--color-primary); }
.purchase-shipping { color: var(--color-text-muted); font-size: .9rem; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.form-row label { font-weight: 600; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.qty-btn { width: 36px; height: 36px; border: none; background: var(--color-bg-alt); cursor: pointer; font-size: 1.1rem; }
.qty-control input { width: 52px; height: 36px; border: none; text-align: center; font-size: 1rem; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.total-row { border-top: 1px dashed var(--color-border); padding-top: 16px; font-size: 1.05rem; }
.total-row strong { color: var(--color-primary); font-size: 1.3rem; }
.purchase-note { margin-top: 12px; text-align: center; color: var(--color-text-muted); font-size: .85rem; }

/* ----- 모달 ----- */
.modal {
  border: none; border-radius: var(--radius); padding: 32px; max-width: 360px;
  text-align: center; box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(36, 27, 47, .55); }
.modal h3 { color: var(--color-primary); margin-bottom: 12px; }
.modal p { color: var(--color-text-muted); margin-bottom: 20px; }
.modal .btn { padding: 10px 28px; }

/* ----- 푸터 ----- */
.site-footer { background: #241b2f; color: #cfc6da; padding: 48px 0; font-size: .88rem; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 16px; }
.footer-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; margin-bottom: 20px; }
.footer-info div { display: flex; gap: 8px; }
.footer-info dt { font-weight: 700; color: #fff; }
.footer-info dt::after { content: " :"; }
.footer-info a { color: #cfc6da; }
.footer-copy { color: #8d8399; }

/* ----- 반응형 ----- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-figure { order: -1; max-width: 420px; margin: 0 auto; }
  .nav-list { display: none; } /* TODO: 필요 시 모바일 메뉴(햄버거) 추가 */
  .section { padding: 52px 0; }
}
