/* ==========================================================================
   제우스F&B — 공통 스타일
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brick); color: var(--on-brick);
  padding: 10px 18px; font-size: var(--fs-sm); font-weight: 600;
}
.skip:focus { left: 0; }

/* 앵커 이동 시 스티키 헤더에 가려지지 않도록 */
:target, [id] { scroll-margin-top: 88px; }

/* --------------------------------------------------------- layout ------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }
.section--sunk { background: var(--sunk); }

.section-head {
  display: grid;
  gap: var(--s-3);
  max-width: var(--prose);
  margin-bottom: var(--s-7);
}
.section-head > p:last-child { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* --------------------------------------------------------- type --------- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1.22; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.45; letter-spacing: -0.012em; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
.prose { max-width: var(--prose); }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* 라틴 전용 라벨은 넓은 자간을 유지 */
.eyebrow--wide { letter-spacing: 0.18em; }
.eyebrow--brick { color: var(--brick); }

.lede { font-size: clamp(17px, 2vw, 19px); line-height: 1.72; color: var(--body); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- header ------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 68px;
}

.brand { display: grid; gap: 1px; text-decoration: none; margin-right: auto; }
.brand__name {
  font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.1;
}
.brand__sub {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--body);
  text-decoration: none; padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brick); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--ink); font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500;
  min-height: 44px; padding: 8px 14px; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule);
    padding: var(--s-2) var(--gutter) var(--s-4);
  }
  .site-header[data-open="true"] .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--brick); }
  .site-header .header-cta { display: none; }
}

/* --------------------------------------------------------- buttons ------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600;
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--brick); color: var(--on-brick); }
.btn--primary:hover { background: var(--brick-hover); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.header-cta { min-height: 38px; padding: 7px 16px; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--brick);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.textlink:hover { border-bottom-color: currentColor; }
.textlink::after { content: "→"; font-family: var(--mono); }

/* --------------------------------------------------------- masthead -----
   히어로. 사진 대신 페이지 내용을 인코딩한 SVG 그래픽을 씁니다.
   (오븐 아치 = 브랜드 마크 / 33셀 = 떡 SKU / 파도 = 진도 산지 …)
   인라인 SVG 라 CSS 변수로 테마를 따라가고, 파일 요청이 없습니다.
   ------------------------------------------------------------------------ */
.masthead { padding-block: clamp(56px, 9vw, 112px) clamp(44px, 6vw, 72px); }

.masthead--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 84px) clamp(40px, 5vw, 72px);
}
.masthead--hero .masthead__body {
  min-width: 0; align-self: center;
}
.masthead--hero h1 { max-width: none; }
.masthead--hero .lede { max-width: 46ch; }

.masthead__art {
  position: relative;
  /* 패널 비율을 이미지와 동일하게 고정한다.
     글 길이에 따라 높이가 정해지면 화면 폭마다 잘리는 정도가 달라진다
     (860px 에서 상하 67% 가 잘리던 문제). */
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sunk);
  overflow: hidden;
  /* 아트 선 색. SVG 가 currentColor 로 상속받는다. */
  color: var(--ink);
}
/* 프레임을 꽉 채우도록 잘라 넣는다 — 작게 떠 있으면 히어로로 안 읽힌다 */
.masthead__art svg,
.masthead__art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.masthead__art img { object-fit: cover; }
/* 사진일 때는 패널 배경이 보이지 않으므로 테두리만 살짝 눌러 준다 */
.masthead__art--photo { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.masthead__art figcaption {
  position: absolute; left: 12px; bottom: 11px;
  padding: 4px 9px; border-radius: 2px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  /* 캡션 뒤에만 얇게 깔아 그래픽 하단이 지워지지 않게 한다 */
  background: color-mix(in srgb, var(--sunk) 88%, transparent);
}

@media (max-width: 860px) {
  /* 좁은 화면에서는 제목 위 가로 밴드로 */
  .masthead--hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .masthead__art { order: -1; }
  .masthead--hero .lede { max-width: none; }
}
@media (max-width: 600px) {
  /* 좁은 화면에서는 제목이 너무 밀리지 않도록 살짝 눕힌다 (잘림 11%) */
  .masthead__art { aspect-ratio: 3 / 2; }
}
.masthead h1 { font-size: var(--fs-display); max-width: 17ch; margin-bottom: var(--s-5); }
.masthead .eyebrow { margin-bottom: var(--s-3); }
/* 패널형 히어로는 컬럼이 절반이라 display 크기(최대 56px)가 과하다.
   전면 히어로(홈)만 display 를 쓴다. 위 .masthead h1 보다 뒤에 와야 이긴다. */
.masthead--hero h1 { font-size: var(--fs-h1); }
.masthead .lede { max-width: 54ch; }
.masthead__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* --------------------------------------------------------- stat bar ----- */
.stats {
  display: grid; gap: 1px; background: var(--rule);
  border-block: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat { background: var(--ground); padding: var(--s-5) var(--s-4); display: grid; gap: 2px; }
.stat b {
  font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.2;
}
.stat span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------- channels -----
   거래처 CI 스트립.
   로고 파일이 없으면 워드마크(텍스트)로, 있으면 <img> 로 그대로 교체하면 된다.
   칩 높이가 고정이라 둘을 섞어 써도 정렬이 흐트러지지 않는다.
   ------------------------------------------------------------------------ */
.channels {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}
.channel { display: grid; gap: var(--s-2); }
.channel__mark {
  height: 68px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius);
}
/* 로고는 대개 밝은 배경 기준으로 제작된다. 다크 모드에서도 칩은 흰 바탕을 유지해
   원본 색상을 그대로 보여준다 (가이드라인상 임의 리컬러는 금지된 경우가 많다). */
.channel__mark:has(img),
.channel__mark--logo {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.14);
}
/* 어두운 배경 전용으로 제작된 로고(이마트 에브리데이)는 칩을 어둡게 둔다.
   흰 칩에 얹으면 흰색으로 그려진 글자가 사라진다. */
.channel__mark--dark,
.channel__mark--dark:has(img) {
  background: #1B1B1B;
  border-color: rgba(255, 255, 255, 0.16);
}
.channel__mark img {
  width: auto; max-width: 100%; max-height: 34px; height: auto;
  object-fit: contain;
}
.channel__word {
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.25; text-align: center;
}
.channel small {
  display: block; text-align: center;
  font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- cards -------- */
.cards {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-5);
  display: grid; gap: var(--s-3); align-content: start;
}
.card--accent { border-top: 2px solid var(--brick); }
.card p { font-size: var(--fs-sm); color: var(--muted); }

/* 사업부 블록 : 사진은 블록 폭의 40% 이내 */
.units { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.unit {
  background: var(--surface); padding: var(--s-6) var(--s-5);
  display: grid; gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: center;
}
.unit__body { display: grid; gap: var(--s-3); align-content: start; }
.unit__body p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.unit__specs {
  display: grid; gap: 6px; margin: var(--s-2) 0 0; padding: 0; list-style: none;
}
.unit__specs li {
  position: relative; padding-left: 15px;
  font-size: var(--fs-xs); color: var(--body); line-height: 1.6;
}
.unit__specs li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; background: var(--brick); border-radius: 50%;
}
.unit__figure { margin: 0; display: grid; gap: 8px; }
.unit__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.unit__figure figcaption { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) {
  .unit { grid-template-columns: minmax(0, 1fr); }
}

/* 사진이 없는 사업부의 우측 슬롯 — 데이터 패널 */
.unit__panel {
  background: var(--sunk); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-5);
  display: grid; gap: var(--s-4); align-content: center;
}
.unit__panel dl { margin: 0; display: grid; gap: var(--s-4); }
.unit__panel div { display: grid; gap: 2px; }
.unit__panel dt {
  font-size: var(--fs-xs); color: var(--muted);
}
.unit__panel dd {
  margin: 0; font-family: var(--mono); font-size: 19px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.015em;
  line-height: 1.3;
}
.unit__panel dd.is-text { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }

/* 3:1 사인 밴드 */
.band { margin: 0; display: grid; gap: 8px; }
.band img {
  width: 100%; aspect-ratio: 3 / 1; object-fit: cover;
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.band figcaption { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

/* 인증 카드 (스캔 미게시 — 사실만 조판) */
.certs { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cert {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start;
}
.cert__no {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  color: var(--brick); font-variant-numeric: tabular-nums;
}
.cert h3 { font-size: 16px; }
.cert dl { margin: var(--s-2) 0 0; display: grid; gap: 4px; font-size: var(--fs-xs); }
.cert dl div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
.cert dt { color: var(--muted); }
.cert dd { margin: 0; color: var(--body); }
/* 진행 중인 인증 — 취득 완료와 명확히 구분한다 */
.cert__status {
  justify-self: start;
  display: inline-block; margin-top: 2px;
  padding: 3px 9px; border-radius: 2px;
  border: 1px solid var(--rule-strong);
  background: var(--sunk);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted);
}

/* --------------------------------------------------------- tables ------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
caption {
  caption-side: top; text-align: left; padding: var(--s-4) var(--s-5) 0;
  font-size: var(--fs-xs); color: var(--muted);
}
th, td {
  text-align: left; padding: 12px 16px; line-height: 1.6;
  border-bottom: 1px solid var(--rule-soft); vertical-align: top;
}
thead th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: var(--sunk); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  white-space: nowrap; text-align: right;
}
tbody th { font-weight: 500; color: var(--ink); }
.table-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-3); }
.nowrap { white-space: nowrap; }

/* SKU 목록 */
.sku-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  counter-reset: sku;
}
.sku-list li {
  background: var(--surface); padding: 10px 14px;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px;
  font-size: var(--fs-sm); color: var(--ink);
}
.sku-list li::before {
  counter-increment: sku; content: counter(sku, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- timeline ----- */
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s-5);
  padding: var(--s-5) 0; border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time {
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 600;
  color: var(--brick); font-variant-numeric: tabular-nums; padding-top: 2px;
}
.timeline h3 { font-size: 16px; margin-bottom: 4px; }
.timeline p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
}

/* --------------------------------------------------------- org ---------- */
.org { display: grid; gap: var(--s-4); }
.org__ceo {
  background: var(--inverse); color: var(--on-inverse);
  border-radius: var(--radius); padding: var(--s-5);
  display: grid; gap: 4px;
}
.org__ceo b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.org__ceo span { font-size: var(--fs-xs); opacity: .78; }
.org__row { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.org__unit {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-4);
  display: grid; gap: 3px;
}
.org__unit b { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.org__unit span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------- CTA ---------- */
.cta-split { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cta-lane {
  background: var(--surface); border: 1px solid var(--rule);
  border-top: 2px solid var(--brick); border-radius: var(--radius);
  padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-3); align-content: start;
}
.cta-lane p { font-size: var(--fs-sm); color: var(--muted); }
.cta-lane .btn { justify-self: start; margin-top: var(--s-2); }

/* --------------------------------------------------------- form --------- */
.form { display: grid; gap: var(--s-4); max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field label .req { color: var(--brick); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field :is(input, select, textarea) {
  font-family: var(--sans); font-size: var(--fs-sm); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 11px 13px; min-height: 44px; width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
/* 파일 선택 — 브라우저 기본 버튼이 padding 과 겹쳐 높이가 뜨는 걸 맞춘다 */
.field input[type="file"] { padding: 4px 12px; line-height: 1.5; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 10px; padding: 6px 12px;
  color: var(--ink); background: var(--sunk);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--ink); }
.field :is(input, select, textarea)::placeholder { color: var(--muted); opacity: .7; }
.field-row { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
  align-items: start; font-size: var(--fs-xs); color: var(--muted); line-height: 1.6;
}
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; flex: none; }

/* 허니팟 — display:none 대신 화면 밖으로. 일부 봇은 display:none 을 걸러낸다 */
.form__hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------- notice ------- */
.notice {
  background: var(--brick-soft); border-left: 2px solid var(--brick);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); color: var(--body);
}
.notice b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------- footer ------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-8) var(--s-7);
  font-size: var(--fs-xs); color: var(--muted);
}
.site-footer__grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: minmax(0, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: var(--s-7);
}
.site-footer h4 {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--body); }
.site-footer a:hover { color: var(--brick); }
.site-footer dl { margin: 0; display: grid; gap: 5px; }
.site-footer dl div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.site-footer dt { color: var(--muted); }
.site-footer dd { margin: 0; color: var(--body); }
.site-footer__legal {
  border-top: 1px solid var(--rule-soft); padding-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-family: var(--mono); font-size: 11px;
}

/* --------------------------------------------------------- motion ------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity .36s ease-out, transform .36s ease-out;
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- TODO --------- */
/* 오픈 전 반드시 실제 값으로 교체. 남아 있으면 눈에 띄도록 처리. */
/* 작업 중 표시용. 현재 화면에 쓰인 곳은 없다 (공개 사이트라 내부 메모를 빼둠).
   오픈 전 확인이 필요한 자리에 다시 붙일 때 쓴다. */
.todo {
  display: inline-block;
  background: repeating-linear-gradient(-45deg,
    var(--brick-soft), var(--brick-soft) 6px,
    transparent 6px, transparent 12px);
  border: 1px dashed var(--brick);
  color: var(--brick);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 2px; letter-spacing: .02em;
}

/* --------------------------------------------------------- 품목 상세 ---- */
.item { padding-block: var(--section-y); border-top: 1px solid var(--rule); }
.item__head {
  display: grid; gap: var(--s-3); max-width: var(--prose); margin-bottom: var(--s-6);
}
.item__no {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  color: var(--brick); font-variant-numeric: tabular-nums;
}
.item__grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  align-items: start; margin-bottom: var(--s-6);
}
@media (max-width: 800px) { .item__grid { grid-template-columns: minmax(0, 1fr); } }

/* 상품 포인트 목록 */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.points li {
  position: relative; padding-left: 18px;
  font-size: var(--fs-sm); line-height: 1.7; color: var(--body);
}
.points li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; background: var(--brick); border-radius: 50%;
}
.points b { color: var(--ink); font-weight: 600; }

/* 인허가 · 집기 사양 */
.spec-strip {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.spec-strip div { background: var(--surface); padding: var(--s-4) var(--s-5); display: grid; gap: 4px; }
.spec-strip dt { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.spec-strip dd { margin: 0; font-size: var(--fs-sm); color: var(--ink); line-height: 1.6; }

/* 상품 컷 썸네일 열 */
.pcuts { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.pcuts li { width: 160px; display: grid; gap: 8px; }
.pcuts img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.pcuts span { font-size: var(--fs-xs); color: var(--muted); }

/* 품목 구분 태그 */
.taglist { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.taglist li {
  border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: 5px 14px; font-size: var(--fs-sm); color: var(--ink); background: var(--surface);
}

/* --------------------------------------------------------- 좁은 화면 ---- */
@media (max-width: 600px) {
  /* 실적 바: auto-fit 이면 마지막 행에 빈 트랙이 생겨 회색 블록으로 보인다.
     2열 고정 + 마지막 항목 전폭으로 정리. */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 항목이 홀수일 때만 마지막을 전폭으로. 짝수(4개)면 2×2 로 딱 맞는다. */
  .stats > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* 라벨/값 2열 정의목록은 좁은 폭에서 값이 낱자로 쪼개진다. 위아래로 쌓는다. */
  .site-footer dl div,
  .cert dl div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .site-footer dt, .cert dt { font-size: 11.5px; }

  /* 표는 가로 스크롤로 처리하되 최소폭을 확보 */
  .table-wrap table { min-width: 460px; }
}

/* --------------------------------------------------------- 전면 히어로 ---
   홈 전용. 이미지 위에 문구를 얹는다.
   사진 위에 글자를 올리지 않는 것이 사이트 원칙이지만(원본 매장 사진이
   저해상도·배경 산만), 홈 히어로는 어두운 스크림을 깔 수 있는 고품질
   이미지라 예외로 둔다. 대비는 스크림이 보장한다.
   ------------------------------------------------------------------------ */
.hero-full {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 62vh, 640px);
  /* 문구가 항상 어두운 바탕 위에 놓이므로 테마와 무관하게 밝은 글자를 쓴다 */
  color: #FFFFFF;
  overflow: hidden;
}
.hero-full__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-full__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}
/* 스크림 — 이미지(-2)보다 위, 본문보다 아래.
   .hero-full__media 안에 두면 그쪽이 쌓임 맥락을 만들어 이미지 뒤로 가버린다. */
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* 가로·세로를 겹치면 오른쪽이 59% 까지 어두워진다.
     세로는 걷어내고 가로 하나로 처리해 오른쪽 사진이 살아나게 한다. */
  background:
    linear-gradient(90deg,
      rgba(12, 10, 9, 0.93) 0%,
      rgba(12, 10, 9, 0.89) 30%,
      rgba(12, 10, 9, 0.66) 50%,
      rgba(12, 10, 9, 0.30) 74%,
      rgba(12, 10, 9, 0.12) 100%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.12), rgba(12, 10, 9, 0.06));
}
.hero-full__inner { padding-block: clamp(48px, 8vw, 88px); }
/* 살몬(#F2A08E)은 밝은 배경 위에서 3.15:1 로 미달. 밝게 올려 4.9:1 확보. */
.hero-full .eyebrow { color: #FFD8CD; }
.hero-full h1 {
  color: #FFFFFF;
  font-size: var(--fs-display);
  max-width: 17ch;
  margin-bottom: var(--s-5);
}
.hero-full .eyebrow { margin-bottom: var(--s-3); }
.hero-full .lede { color: rgba(255, 255, 255, 0.9); max-width: 50ch; }
.hero-full__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
/* 어두운 바탕 전용 고스트 버튼 */
.btn--ondark {
  border-color: rgba(255, 255, 255, 0.55); color: #FFFFFF; background: transparent;
}
.btn--ondark:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }
.hero-full :is(a, button):focus-visible { outline-color: #FFFFFF; }

@media (max-width: 860px) {
  /* 문구가 전체 폭을 쓰므로 스크림도 균일하게 */
  .hero-full { min-height: clamp(380px, 66vh, 520px); }
  .hero-full::before {
    background: linear-gradient(180deg,
      rgba(12, 10, 9, 0.80) 0%,
      rgba(12, 10, 9, 0.86) 55%,
      rgba(12, 10, 9, 0.92) 100%);
  }
  .hero-full h1 { max-width: none; }
}

/* --------------------------------------------------------- 역량 4열 ---- */
.capabilities {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--rule);
  border-block: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.capability {
  background: var(--sunk);
  padding: var(--s-6) var(--s-5);
  display: grid; gap: var(--s-3); justify-items: center; text-align: center;
}
.capability svg { width: 26px; height: 26px; color: var(--brick); }
.capability b {
  font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em;
}
.capability span { font-size: var(--fs-xs); color: var(--muted); line-height: 1.65; }


/* --------------------------------------------------------- 델리 팝업 ---- */
/* 네이티브 <dialog>. 포커스 가둠·ESC 닫기는 showModal() 이 처리한다. */
.promo {
  width: min(560px, calc(100vw - 2 * var(--s-4)));
  max-height: min(86dvh, 86vh);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--body);
  box-shadow: 0 24px 60px rgba(12, 10, 9, 0.28);
  overflow: hidden;
  display: none;                 /* [open] 일 때만 grid — dialog 기본값 덮어쓰기 */
}
.promo[open] { display: grid; grid-template-rows: auto 1fr auto auto; }

/* 스크림은 양쪽 테마에서 같은 값을 쓴다 (::backdrop 은 토큰 상속이 불안정) */
.promo::backdrop { background: rgba(12, 10, 9, 0.55); }

/* 사진 띠 — 높이만 정하고 폭은 그리드가 채운다.
   aspect-ratio 와 max-height 를 같이 걸면 높이가 잘릴 때 폭까지 따라 줄어든다. */
.promo__art {
  margin: 0; height: clamp(150px, 20vh, 200px);
  overflow: hidden; background: var(--sunk);
}
.promo__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.promo__body {
  padding: var(--s-6) var(--s-6) var(--s-6);
  overflow-y: auto;              /* 내용이 길면 팝업 안에서만 스크롤 */
  -webkit-overflow-scrolling: touch;
}
.promo h2 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-h2); color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.3;
}
.promo__lede {
  margin: 0 0 var(--s-6);
  font-size: var(--fs-body); color: var(--body); line-height: 1.7;
}

/* 목록 표제 — 아래 항목이 "취급 중인 결" 이라는 걸 밝혀 준다 */
.promo__label {
  margin: 0 0 var(--s-3);
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted);
}

.promo__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-3);
}
.promo__list li {
  background: var(--sunk); border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  display: grid; gap: var(--s-1);
}
.promo__list b {
  font-size: var(--fs-h3); font-weight: 600; color: var(--ink);
  letter-spacing: -0.015em;
}
.promo__list span { font-size: var(--fs-sm); color: var(--body); line-height: 1.7; }

.promo__actions {
  position: relative;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--rule-soft);
}
/* 스크롤 영역 끝을 흐리게 — 내용이 잘린 게 아니라 더 있다는 신호 */
.promo__actions::before {
  content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
.promo__actions .btn { flex: 1 1 auto; }

/* 닫기 — 우상단 아이콘 */
.promo__x {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 1;
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.promo__x:hover { border-color: var(--ink); background: var(--sunk); }

/* 바닥 — 오늘 하루 보지 않기 + 닫기 */
.promo__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-6);
  background: var(--sunk); border-top: 1px solid var(--rule-soft);
  font-size: var(--fs-xs);
}
.promo__today {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--muted); cursor: pointer;
}
.promo__today input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--brick); }
.promo__close {
  min-height: 36px; padding: 6px 14px;
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color .18s ease;
}
.promo__close:hover { border-color: var(--ink); }

/* 팝업이 열려 있는 동안 뒤 페이지 스크롤 잠금 */
body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .promo[open] { animation: promo-in .24s ease both; }
  .promo[open]::backdrop { animation: promo-fade .24s ease both; }
}
@keyframes promo-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes promo-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 560px) {
  /* 좁은 화면에서는 사진과 리드를 줄여 제품군이 접히지 않게 한다 */
  .promo__art { height: clamp(96px, 13vh, 120px); }
  .promo__body { padding: var(--s-5); }
  .promo h2 { margin-bottom: var(--s-2); }
  .promo__lede { font-size: var(--fs-sm); line-height: 1.65; margin-bottom: var(--s-5); }
  .promo__list li { padding: var(--s-4); }
  .promo__actions { padding: var(--s-4) var(--s-5); }
  .promo__foot { padding: var(--s-3) var(--s-5); }
  .promo__actions .btn { flex-basis: 100%; }
}
