/* ========================================================================
   Naishitoru Apple-inspired UI Theme (Refined)
   Palette: Primary Red / Yellow, Support Black / White
   ======================================================================== */
:root {
  --bg: #f5f5f7 !important;
  --bg-alt: #ffffff !important;
  --ink: #1d1d1f !important;
  --ink-soft: #6e6e73 !important;
  --primary: #e60012 !important;
  --primary-dark: #b8000e !important;
  --accent: #ffd60a !important;
  --accent-soft: #fff3a3 !important;
  --herb-brown: #1d1d1f !important;
  --line: #d2d2d7 !important;
  --white: #ffffff !important;
  --radius-sm: 12px !important;
  --radius-md: 24px !important;
  --radius-full: 999px !important;
  --max-width: 1180px !important;
  --apple-shadow: 0 18px 50px rgba(0, 0, 0, .07);
  --apple-shadow-hover: 0 28px 70px rgba(0, 0, 0, .12);
}

html { background: #f5f5f7; }
body {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif !important;
  letter-spacing: -.018em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: #ffd60a; color: #1d1d1f; }

.container { width: min(calc(100% - 48px), 1180px) !important; max-width: 1180px !important; margin: 0 auto; }
.section { padding: 112px 0 !important; }
.section:nth-of-type(even) { background: #fff !important; }
.section-head { max-width: 820px !important; margin-bottom: 48px !important; }
.section-head h2 {
  color: #1d1d1f !important;
  font-size: clamp(34px, 4.6vw, 56px) !important;
  line-height: 1.07 !important;
  letter-spacing: -.045em !important;
  font-weight: 800 !important;
}
.section-head p { color: #6e6e73 !important; font-size: 18px !important; line-height: 1.65 !important; }
.eyebrow {
  color: #e60012 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

/* ================= HEADER ================= */
.site-header {
  background: rgba(255, 255, 255, .82) !important;
  border-bottom: 1px solid rgba(0, 0, 0, .08) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner { min-height: 66px !important; }
.logo { gap: 10px !important; }
.logo-mark { width: 30px !important; height: 30px !important; border-radius: 8px; }
.logo-title { color: #1d1d1f !important; font-weight: 800 !important; letter-spacing: -.035em; }
.nav-links { gap: 28px !important; }
.nav-links a:not(:last-child) {
  color: #424245 !important; font-size: 13px !important; font-weight: 600 !important;
  transition: color .2s ease, opacity .2s ease !important;
}
.nav-links a:not(:last-child)::after { display: none !important; }
.nav-links a:not(:last-child):hover, .nav-links a.is-current { color: #e60012 !important; }
.menu-toggle span { background: #1d1d1f !important; }
.mobile-menu {
  background: rgba(255, 255, 255, .97) !important;
  border-top: 1px solid #e5e5e7 !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .08) !important;
}
.mobile-menu a { color: #1d1d1f !important; border-color: #eeeeef !important; }

/* ================= BUTTONS ================= */
.btn, .qna-search-btn, .pc-tab-btn, .effect-tag-btn, .h-nav, .naishi-cta-buy {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
}
.btn-primary, .qna-search-btn, .naishi-cta-buy {
  background: #e60012 !important;
  color: #ffd60a !important;
  border: 1.5px solid #e60012 !important;
  box-shadow: none !important;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease !important;
}
.btn-primary:hover, .qna-search-btn:hover, .naishi-cta-buy:hover {
  background: #ffd60a !important;
  color: #e60012 !important;
  border-color: #ffd60a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .10) !important;
}
.btn-outline {
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  backdrop-filter: blur(12px);
}
.btn-outline:hover { background: #fff !important; color: #e60012 !important; border-color: #fff !important; transform: translateY(-2px); }

/* ================= NEW HERO PREMIUM (CLEAN & WHITE ACCENT) ================= */
.hero-premium {
  position: relative;
  background: #0d0d0f !important;
  color: #fff !important;
  padding: 100px 0 110px !important;
  overflow: hidden !important;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 0, 18, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
}

.hero-layout {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  align-items: center !important;
  gap: 56px !important;
  position: relative;
  z-index: 2;
}

/* 좌측 텍스트 (군더더기 없는 미니멀 구성) */
.hero-subhead {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffd60a;
  margin-bottom: 16px;
}

.hero-title-prefix {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 850;
  color: #ffffff;
  margin: 0;
}

.hero-main-title {
  color: #ffd60a !important;
  font-size: clamp(40px, 5vw, 64px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.04em !important;
  font-weight: 850 !important;
  margin: 0 0 18px 0 !important;
}

.hero-lead-desc {
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  color: #8e8e93 !important;
  margin-bottom: 34px !important;
  word-break: keep-all;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e60012 !important;
  color: #ffd60a !important;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid #e60012;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-hero-primary:hover {
  background: #ffd60a !important;
  color: #e60012 !important;
  border-color: #ffd60a !important;
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* 우측 제품 스테이지 (화이트 보더 & 갤러리 윈도우 스타일) */
.visual-card-shell {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.product-stage {
  position: relative;
  background: #141417;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  height: 460px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.05);
}

.stage-aura {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(230, 0, 18, 0.28) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.stage-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 36px;
}

.stage-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

/* 흰색 배경 제품 이미지를 정돈해주는 라운드 플레이트 */
.stage-product-img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.stage-link:hover .stage-product-img {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.stage-meta {
  text-align: center;
  margin-top: 18px;
}

.stage-tag {
  display: inline-block;
  font-size: 12px;
  color: #ffd60a;
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stage-title {
  color: #fff !important;
  font-size: 1.25rem !important;
  font-weight: 750 !important;
  margin: 0;
}

.stage-arrow-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  z-index: 10;
}

.stage-arrow-btn.prev { left: 14px; }
.stage-arrow-btn.next { right: 14px; }

.stage-arrow-btn:hover {
  background: #ffffff;
  color: #e60012;
  border-color: #ffffff;
}

/* 목표 체중 시뮬레이션 (화이트 글래스 알약 캡슐) */
.dynamic-weight-panel {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.dw-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e60012;
  box-shadow: 0 0 8px rgba(230, 0, 18, 0.6);
}

.dw-title {
  font-size: 13px;
  color: #1d1d1f;
  font-weight: 700;
  margin-left: 8px;
  margin-right: auto;
}

.dw-flow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dw-val.base {
  font-size: 13px;
  color: #86868b;
  text-decoration: line-through;
}

.dw-arrow {
  font-size: 12px;
  color: #86868b;
}

.dw-val.current {
  font-size: 16px;
  font-weight: 850;
  color: #1d1d1f;
}

.dw-diff-pill {
  font-size: 12px;
  font-weight: 800;
  color: #e60012;
  background: #fff0f0;
  border: 1px solid #ffd1d1;
  padding: 2px 9px;
  border-radius: 999px;
}

/* ================= SUBPAGE HERO ================= */
.page-hero { min-height: 430px !important; background: #111 !important; }
.page-hero-overlay { background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .32), rgba(0, 0, 0, .48)) !important; }
.page-hero .eyebrow { color: #ffd60a !important; }
.page-hero h1 { color: #fff !important; font-size: clamp(40px, 5.4vw, 64px) !important; line-height: 1.06 !important; letter-spacing: -.05em !important; font-weight: 850 !important; }
.page-hero p { color: rgba(255, 255, 255, .82) !important; font-size: 18px !important; }

/* ================= CARDS ================= */
.product-card, .stat-card, .ig-summary-card, .related-card, .pu-box, .faq-item, .match-result, .cert-doc, .caution-box, .pc-chart-block {
  background: #fff !important;
  border: 1px solid #e8e8ed !important;
  border-radius: 28px !important;
  box-shadow: var(--apple-shadow) !important;
}
.product-card, .related-card, .ig-summary-card {
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease !important;
}
.product-card:hover, .related-card:hover, .ig-summary-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--apple-shadow-hover) !important;
  border-color: #d7d7dc !important;
}
.product-card-img, .ph-img, .match-result-img { background: #fbfbfd !important; border-radius: 22px !important; }
.product-card h3, .related-card h3, .ig-summary-num { color: #1d1d1f !important; }
.product-card p, .ig-summary-label { color: #6e6e73 !important; }
.product-badge, .ph-line-badge, .related-card .rp-badge, .usage-badge, .match-result-badge {
  background: #fff4b8 !important;
  color: #a5000c !important;
  border: 1px solid #ffe365 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
.stat-num { color: #e60012 !important; }

/* ================= PRODUCT DETAIL ================= */
.breadcrumb { background: #f5f5f7 !important; border-bottom: 1px solid #e5e5e7 !important; color: #6e6e73 !important; }
.breadcrumb a:hover { color: #e60012 !important; }
.product-hero { background: #fff !important; padding: 84px 0 104px !important; }
.ph-grid { gap: 72px !important; }
.ph-img { border: 1px solid #ececef !important; box-shadow: var(--apple-shadow) !important; padding: 36px !important; }
.ph-title { color: #1d1d1f !important; font-size: clamp(38px, 5vw, 58px) !important; letter-spacing: -.05em !important; line-height: 1.06 !important; }
.ph-sub { color: #6e6e73 !important; }
.ph-spec-list { border-top: 1px solid #d2d2d7 !important; }
.ph-spec-row { border-color: #e5e5e7 !important; }
.ph-spec-row dt { color: #6e6e73 !important; }
.ph-spec-row dd { color: #1d1d1f !important; }
.ph-spec-row .price-em { color: #e60012 !important; }

/* ================= TABLES & PRICE COMPARISON ================= */
.pc-table-wrap, .usage-table-wrap {
  background: #fff !important; border: 1px solid #e5e5e7 !important; border-radius: 26px !important;
  box-shadow: var(--apple-shadow) !important; overflow: hidden !important;
}
.pc-table thead th, .usage-table thead th { background: #1d1d1f !important; color: #fff !important; border-color: #333336 !important; }
.pc-table tbody td, .usage-table tbody td { background: #fff !important; color: #1d1d1f !important; border-color: #eeeeef !important; }
.pc-table tbody tr:hover td, .usage-table tbody tr:hover td { background: #fffbea !important; }
.pc-row.is-active td { background: #fff7d1 !important; }
.pc-price-text.is-low, .pc-chart-bar.is-low, .pc-bar-fill.is-min { color: #e60012 !important; background: #e60012 !important; }
.pc-price-text.is-high { color: #6e6e73 !important; }
.pc-toggle-btn, .pc-tab-btn {
  background: #fff !important; color: #1d1d1f !important; border: 1px solid #d2d2d7 !important;
  transition: .2s ease !important;
}
.pc-toggle-btn:hover, .pc-tab-btn:hover, .pc-tab-btn.is-active { background: #e60012 !important; color: #ffd60a !important; border-color: #e60012 !important; }
.pc-bar-track { background: #e8e8ed !important; }
.pc-bar-fill { background: #6e6e73 !important; }

/* ================= INGREDIENTS ================= */
.body-map-wrap, .ingredient-list-c { background: #fff !important; border: 1px solid #e5e5e7 !important; border-radius: 28px !important; box-shadow: var(--apple-shadow) !important; }
.ic-row { border-color: #eeeeef !important; }
.ic-row:hover, .ic-row.is-active { background: #fffbea !important; }
.ic-index, .ic-zone-tag { color: #e60012 !important; }
.ic-name, .ic-hanja { color: #1d1d1f !important; }
.ic-desc, .body-map-caption { color: #6e6e73 !important; }
.body-zone.is-active { fill: #ffd60a !important; stroke: #e60012 !important; }
.effect-tag-btn { background: #fff !important; border: 1px solid #d2d2d7 !important; color: #424245 !important; }
.effect-tag-btn:hover, .effect-tag-btn.is-active { background: #e60012 !important; color: #ffd60a !important; border-color: #e60012 !important; }

/* ================= FAQ & QNA ================= */
.qna-search { background: #fff !important; border: 1px solid #d2d2d7 !important; border-radius: 999px !important; box-shadow: 0 12px 30px rgba(0, 0, 0, .06) !important; }
.qna-search input { color: #1d1d1f !important; }
.qna-search input:focus { outline: none !important; }
.qna-jump a { background: #fff !important; color: #424245 !important; border: 1px solid #d2d2d7 !important; border-radius: 999px !important; }
.qna-jump a:hover { background: #e60012 !important; color: #ffd60a !important; border-color: #e60012 !important; }
.qna-group-title { color: #1d1d1f !important; }
.qna-group-title .qg-dot { background: #e60012 !important; }
.faq-item summary { color: #1d1d1f !important; }
.faq-item summary::after { color: #e60012 !important; }
.faq-item p { color: #6e6e73 !important; }

/* ================= GUIDES & HISTORY ================= */
.h-card { border-radius: 28px !important; border: 1px solid #e5e5e7 !important; box-shadow: var(--apple-shadow) !important; }
.h-card-era, .h-card-year { color: #e60012 !important; }
.h-nav { background: #fff !important; border: 1px solid #d2d2d7 !important; color: #1d1d1f !important; }
.h-nav:hover { background: #e60012 !important; color: #ffd60a !important; border-color: #e60012 !important; }
.ig-checklist, .pu-steps { background: #fff !important; border: 1px solid #e5e5e7 !important; border-radius: 28px !important; box-shadow: var(--apple-shadow) !important; }
.ig-check-item, .pu-step { border-color: #eeeeef !important; }
.ig-check-mark, .pu-step-num, .pu-check-mark { background: #e60012 !important; color: #ffd60a !important; }

/* ================= FOOTER CTA BLOCKS ================= */
.history-cta, .ingredients-cta, .products-cta, .qna-cta, .ig-cta, .pc-cta, .pd-cta {
  background: #1d1d1f !important;
  color: #fff !important;
  border-radius: 36px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .16) !important;
}
.history-cta h2, .ingredients-cta h2, .products-cta h2, .qna-cta h2, .ig-cta h2, .pc-cta h2, .pd-cta h2 { color: #fff !important; letter-spacing: -.04em !important; }
.history-cta p, .ingredients-cta p, .products-cta p, .qna-cta p, .ig-cta p, .pc-cta p, .pd-cta p { color: #c7c7cc !important; }

/* ================= FOOTER ================= */
.site-footer { background: #0b0b0c !important; color: #f5f5f7 !important; border-top: 0 !important; }
.site-footer a { color: #c7c7cc !important; }
.site-footer a:hover { color: #ffd60a !important; }

/* ================= STICKY BOTTOM BANNER ================= */
.naishi-cta-shell { background: rgba(255, 255, 255, .94) !important; border-top: 1px solid #d2d2d7 !important; box-shadow: 0 -18px 55px rgba(0, 0, 0, .10) !important; backdrop-filter: blur(24px); }
.naishi-cta-toggle { background: #fff !important; border-color: #d2d2d7 !important; }
.naishi-cta-toggle svg { color: #e60012 !important; }
.naishi-cta-badge { background: #e60012 !important; color: #ffd60a !important; box-shadow: none !important; }
.naishi-cta-kicker { color: #e60012 !important; }
.naishi-cta-title { color: #1d1d1f !important; }
.naishi-cta-desc { color: #6e6e73 !important; }

/* ================= UTILITY & FOCUS ================= */
.box { background: #fff !important; border: 1px solid #e5e5e7 !important; border-radius: 32px !important; box-shadow: var(--apple-shadow) !important; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #ffd60a !important; outline-offset: 3px; }
@media (hover: hover) {
  .btn:active, .qna-search-btn:active, .pc-tab-btn:active { transform: scale(.98) !important; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .section { padding: 82px 0 !important; }
  .container { width: min(calc(100% - 36px), 1180px) !important; }
  .hero-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .product-stage { height: 420px; }
  .dynamic-weight-panel {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero { min-height: 380px !important; }
  .ph-grid { gap: 42px !important; }
  .product-hero { padding: 58px 0 76px !important; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), 1180px) !important; }
  .section { padding: 68px 0 !important; }
  .section-head { margin-bottom: 34px !important; }
  .section-head h2 { font-size: 34px !important; }
  .section-head p { font-size: 16px !important; }
  
  .hero-main-title { font-size: 36px !important; }
  .dynamic-weight-panel { width: 95%; padding: 10px 14px; }
  .dw-title { font-size: 12px; }
  .dw-val.current { font-size: 14px; }

  .page-hero { min-height: 340px !important; }
  .page-hero h1 { font-size: 38px !important; }
  .product-card, .stat-card, .ig-summary-card, .related-card, .pu-box, .faq-item, .match-result, .cert-doc, .caution-box, .pc-chart-block { border-radius: 22px !important; }
  .history-cta, .ingredients-cta, .products-cta, .qna-cta, .ig-cta, .pc-cta, .pd-cta { border-radius: 26px !important; }
  .ph-img { padding: 22px !important; }
}