/* ============================================================
   FNB-DETL-052 · 포근제과 · SFT 소프트·파스텔
   딸기 시즌 한정 세트 상세페이지 1p
   ============================================================ */

:root {
  --brand:       #c24576;
  --brand-ink:   #ffffff;
  /* 로즈는 밝은 지면 위 글자로 4.49:1 이라 기준에 0.01 모자란다. 눌러서 5.5:1 로 맞춘다. */
  --brand-text:  #ae3a63;
  --accent:      #4a2a38;
  --accent-ink:  #fff6f9;
  --surface:     #fff6f9;
  --surface-alt: #fbe9ef;
  --font-display: var(--font-sans);
  --r: var(--r-xl);
}

body { background: var(--surface); }

.u-edge { padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); }

/* ── 공통 타입 ─────────────────────────────────────────────── */

.kicker, .label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--brand-text);
}
.label { color: var(--ink-3); }

.h2 { font-size: var(--fs-2xl); line-height: 1.14; letter-spacing: var(--ls-tight); }
.h3 { font-size: var(--fs-lg); letter-spacing: var(--ls-tight); }

.body-lg { font-size: var(--fs-md); color: var(--ink-2); max-width: 46ch; }
.body-sm { font-size: var(--fs-sm); color: var(--ink-2); }

/* ── 버튼 ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-full);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn--solid { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px color-mix(in oklab, var(--brand) 26%, transparent); }
.btn--solid:hover { background: var(--accent); color: var(--accent-ink); }

.btn--line { border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--brand); color: var(--brand-text); }

/* ── 헤더 ──────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.nav__logo {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight);
}
.nav__mark {
  width: 14px; height: 14px; flex: none;
  border-radius: var(--r-full);
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, transparent);
}
.nav__menu { display: none; gap: var(--sp-6); }
.nav__menu a { font-size: var(--fs-sm); color: var(--ink-2); }
.nav__menu a:hover { color: var(--brand-text); }
@media (min-width: 1024px) { .nav__menu { display: flex; } }

/* ── 히어로 ────────────────────────────────────────────────── */
/* 하이키 파스텔 지면이라 어두운 스크림을 씌우면 톤이 깨진다.
   SPEC 8 해법 B — 사진을 상단 밴드로 깔고 텍스트는 아래 solid 면에 둔다. */

.hero {
  --header-h: 68px;
  display: grid;
  grid-template-rows: minmax(0, 38svh) minmax(0, 1fr);
  min-height: 100svh;
  padding-top: var(--header-h);
}
.hero__media { position: relative; }
.hero__media .img-slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }

.hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-7) var(--gutter) var(--sp-7);
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: calc(var(--sp-6) * -1);
}

.hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero__badges span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--brand-text);
}
.hero__badges span:first-child { background: var(--brand); color: var(--brand-ink); }

.hero__title { font-size: var(--fs-4xl); line-height: 1.02; letter-spacing: var(--ls-tighter); }
.hero__title em { font-style: normal; color: var(--brand-text); }
.hero__lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 36ch; }

.hero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3); }
.hero__price b { font-size: var(--fs-2xl); letter-spacing: var(--ls-tight); }
.hero__price del { font-size: var(--fs-md); color: var(--ink-3); }
.hero__price i {
  font-style: normal; font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--brand-ink); background: var(--brand);
  padding: 2px var(--sp-3); border-radius: var(--r-full);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.hero__note { font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 1024px) {
  .hero {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 50%);
    padding-top: 0;
  }
  .hero__media { order: 2; min-height: 100svh; }
  .hero__text {
    order: 1; margin-top: 0; border-radius: 0;
    padding-block: calc(var(--header-h) + var(--sp-9)) var(--sp-9);
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    padding-right: var(--sp-8);
  }
}

/* ── 지표 ──────────────────────────────────────────────────── */

.facts { background: var(--surface-alt); }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  padding-block: var(--sp-7);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.fact dt { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--sp-2); }
.fact dd { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); color: var(--brand-text); line-height: 1.1; }
.fact dd span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: var(--fw-medium); }

@media (min-width: 768px) { .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── 구성품 ────────────────────────────────────────────────── */

.kit__inner { display: grid; gap: var(--sp-7); }
.kit__head { display: grid; gap: var(--sp-4); align-content: start; }
.kit__list { display: grid; gap: var(--sp-6); }

.item { display: grid; gap: var(--sp-4); }
.item__media { border-radius: var(--r); }
.item__name { font-size: var(--fs-lg); letter-spacing: var(--ls-tight); }
.item__desc { font-size: var(--fs-sm); color: var(--ink-2); }
.item__spec {
  display: flex; gap: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.item__spec dt { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 2px; }
.item__spec dd { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

@media (min-width: 768px) { .kit__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } }
@media (min-width: 1024px) {
  .kit__inner { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--sp-8); }
  .kit__head { position: sticky; top: var(--sp-9); }
}

/* ── 풀블리드 + 겹침 카드 ──────────────────────────────────── */

.story { position: relative; padding-bottom: var(--section-y); }
.story__media { border-radius: 0; aspect-ratio: 4 / 5; }
.story__card {
  position: relative;
  margin-top: calc(var(--sp-8) * -1);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  display: grid;
  gap: var(--sp-4);
}
.story__list { display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.story__list li {
  display: flex; gap: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.story__list b { color: var(--brand-text); min-width: 5em; flex: none; }

@media (min-width: 768px) {
  .story__media { aspect-ratio: 21 / 9; }
  .story__card { margin-top: calc(var(--sp-9) * -1); margin-right: auto; max-width: 620px; padding: var(--sp-8); }
}

/* ── 스펙표 ────────────────────────────────────────────────── */

.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.spec th, table.spec td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.spec th { width: 34%; color: var(--ink-3); font-weight: var(--fw-semibold); }
table.spec td { color: var(--ink); }

/* ── 인용 ──────────────────────────────────────────────────── */

.quote-sec { background: var(--surface-alt); }
.quote { display: grid; gap: var(--sp-5); text-align: center; }
.quote p { font-size: var(--fs-xl); font-weight: var(--fw-medium); line-height: 1.44; letter-spacing: var(--ls-tight); }
.quote footer { font-size: var(--fs-sm); color: var(--ink-3); }
.quote footer b { color: var(--brand-text); }

/* ── 후기 ──────────────────────────────────────────────────── */

.reviews { display: grid; gap: var(--sp-5); }
.review {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface-alt);
  border-radius: var(--r);
}
.review__stars { color: var(--brand-text); font-size: var(--fs-sm); letter-spacing: .16em; }
.review p { font-size: var(--fs-sm); color: var(--ink-2); }
.review footer { font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── FAQ ───────────────────────────────────────────────────── */

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding-block: var(--sp-5);
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand-text); }
.qa summary::after {
  content: ""; width: 13px; height: 13px; flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
  transition: transform var(--dur) var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); max-width: 62ch; }

/* ── 구매 패널 ─────────────────────────────────────────────── */

.buy { background: var(--surface-alt); }
.buy__inner { display: grid; gap: var(--sp-6); }
.buy__panel {
  display: grid; gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  align-content: start;
}
.buy__row { display: grid; gap: var(--sp-2); }
.buy__row label { font-size: var(--fs-xs); color: var(--ink-3); font-weight: var(--fw-semibold); }
.buy__row select, .buy__row input {
  width: 100%;
  padding: var(--sp-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-sm);
}
.buy__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.buy__total span { font-size: var(--fs-sm); color: var(--ink-3); }
.buy__total b { font-size: var(--fs-xl); letter-spacing: var(--ls-tight); }
.buy__note { font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 1024px) {
  .buy__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--sp-8); align-items: start; }
  .buy__panel { position: sticky; top: var(--sp-9); }
}

/* ── 푸터 ──────────────────────────────────────────────────── */

.foot { padding-block: var(--sp-8) var(--sp-6); border-top: 1px solid var(--line); }
.foot__inner { display: grid; gap: var(--sp-5); }
.foot__brand { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-md); font-weight: var(--fw-bold); }
.foot__addr { font-style: normal; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.9; }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.foot__nav a { font-size: var(--fs-sm); color: var(--ink-2); }
.foot__nav a:hover { color: var(--brand-text); }
.foot__copy {
  grid-column: 1 / -1;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

@media (min-width: 768px) {
  .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); }
}

/* ============================================================
   브랜드 마크 · 아이콘 · 인터랙션 보강  ★SPEC 4-C
   레이아웃·색·타이포는 건드리지 않는다. 여기서는 더하기만 한다.
   ============================================================ */

.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

/* ── 브랜드 마크 — 딸기(열매 + 세 갈래 꼭지) ─────────────────
   로즈는 밝은 지면에서 4.49:1 이라 마크도 --brand-text(5.5:1) 로 그린다. */
.mark { flex: none; color: var(--brand-text); }
.mark__calyx { transition: transform var(--dur-slow) var(--ease-out); transform-origin: 16px 11.8px; }
.mark__berry { transition: transform var(--dur) var(--ease-out); transform-origin: 16px 20px; }
.nav__logo:hover .mark__calyx { transform: rotate(-10deg); }
.nav__logo:hover .mark__berry { transform: scale(1.06); }
.nav__logo { transition: color var(--dur) var(--ease); }
.nav__logo:hover { color: var(--brand-text); }
.foot__brand .mark { transition: transform var(--dur-slow) var(--ease-out); }
.foot__brand:hover .mark { transform: rotate(-8deg); }

/* ── 아이콘이 붙는 자리 ─────────────────────────────────────── */

/* 배지 줄은 375 에서 폭이 빠듯하다 — 아이콘은 CTA 아래 안내문과 스펙 라벨에만 둔다 */
.hero__note { display: flex; align-items: center; gap: var(--sp-2); }
.hero__note .ico { font-size: var(--fs-base); color: var(--brand-text); }
.item__spec dt { display: inline-flex; align-items: center; gap: var(--sp-2); }
.item__spec dt .ico { font-size: var(--fs-sm); }

.story__list b { display: inline-flex; align-items: center; gap: var(--sp-2); }
.story__list b .ico { font-size: var(--fs-md); }

.foot__addr { display: grid; gap: var(--sp-3); line-height: 1.5; }
.foot__addr span { display: flex; align-items: flex-start; gap: var(--sp-3); }
.foot__addr .ico { font-size: var(--fs-md); color: var(--brand-text); margin-top: .1em; }

/* 14px 버튼에서 1em 화살표는 뭉개진다 */
.btn__arrow {
  font-size: 1.25em;
  margin-left: 1px;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ── 내비: 밑줄이 한쪽에서 그어진다 ────────────────────────── */

.nav__menu a { position: relative; padding-block: 2px; transition: color var(--dur) var(--ease); }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--brand); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── 지표 ──────────────────────────────────────────────────── */

.fact { transition: background var(--dur) var(--ease), border-radius var(--dur) var(--ease); }
.fact:hover { background: color-mix(in oklab, var(--brand) 10%, transparent); border-radius: var(--r-lg); }
.fact dd { transition: transform var(--dur) var(--ease-out); }
.fact:hover dd { transform: translateY(-2px); }

/* ── 구성품 카드: 들어올려지고 사진이 당겨진다 ─────────────── */

.item { transition: transform var(--dur) var(--ease-out); }
.item:hover { transform: translateY(-6px); }
.item__media { overflow: hidden; }
.item__media img { transition: transform var(--dur-slow) var(--ease-out); }
.item:hover .item__media img { transform: scale(1.05); }
.item__name { transition: color var(--dur) var(--ease); }
.item:hover .item__name { color: var(--brand-text); }
.item__spec { transition: border-color var(--dur) var(--ease); }
.item:hover .item__spec { border-top-color: var(--brand); }

/* ── 공정 목록 ─────────────────────────────────────────────── */

.story__list li { transition: color var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.story__list li:hover { color: var(--ink); transform: translateX(3px); }

/* ── 후기 · 주문 패널 ──────────────────────────────────────── */

.review { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease); }
.review:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.review__stars { transition: letter-spacing var(--dur) var(--ease); }
.review:hover .review__stars { letter-spacing: .24em; }
.buy__row select, .buy__row input { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.buy__row select:hover, .buy__row input:hover { border-color: var(--brand); }
.buy__total b { transition: color var(--dur) var(--ease); }
.buy__panel:hover .buy__total b { color: var(--brand-text); }
.qa summary { transition: color var(--dur) var(--ease); }

/* ── 푸터 링크: 밑줄이 한쪽에서 그어진다 ────────────────────── */

.foot__nav a { position: relative; transition: color var(--dur) var(--ease); }
.foot__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.foot__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── 지면 모션 ─────────────────────────────────────────────── */

@keyframes pogeunQaOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.qa[open] p { animation: pogeunQaOpen var(--dur) var(--ease-out) both; }

/* 한정 배지가 아주 천천히 부푼다 */
@keyframes pogeunPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.hero__badges span:first-child { animation: pogeunPulse 4.4s var(--ease) infinite; }

/* 큰 숫자가 순서대로 한 번 올라온다 */
@keyframes pogeunRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
html.js .fact.is-in dd { animation: pogeunRise var(--dur-slow) var(--ease-out) both; }

/* ── 스크롤 등장에 계단식 지연 ─────────────────────────────── */

html.js .facts__grid .reveal:nth-child(2) { transition-delay: 60ms; }
html.js .facts__grid .reveal:nth-child(3) { transition-delay: 120ms; }
html.js .facts__grid .reveal:nth-child(4) { transition-delay: 180ms; }
html.js .kit__list .reveal:nth-child(2) { transition-delay: 90ms; }
html.js .kit__list .reveal:nth-child(3) { transition-delay: 180ms; }
html.js .reviews .reveal:nth-child(2) { transition-delay: 70ms; }
html.js .reviews .reveal:nth-child(3) { transition-delay: 140ms; }
html.js .faq__list .reveal:nth-child(2) { transition-delay: 70ms; }
html.js .faq__list .reveal:nth-child(3) { transition-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transition-delay: 0s !important; }
  .hero__badges span:first-child { animation: none; }
  html.js .fact.is-in dd { animation: none; }
  .mark__calyx, .mark__berry, .foot__brand:hover .mark,
  .fact:hover dd, .item:hover, .item:hover .item__media img,
  .story__list li:hover, .review:hover, .btn:hover .btn__arrow { transform: none; }
}


/* ===== 획일성 제거 — SFT 무드 어휘 =====================================
   160작품이 레퍼런스의 밑줄 draw·카드 리프트·대문자 킥커를 그대로 복사해
   같은 사이트 리스킨으로 보였다. 반응 방식을 무드에 맞게 갈아끼운다.
   ==================================================================== */
/* 세로 카덴스를 작품마다 다르게 — 전부 같은 --section-y 를 쓰는 게 구조적 tell 이었다 */
:root { --section-y: clamp(4.32rem, 2.6836rem + 7.0007vw, 8.63rem); }

/* 소프트 — 알약 배경이 부드럽게 번진다. */
.nav__menu a::after, .foot__nav a::after { display: none !important; }
.foot__nav a, .nav__menu a { border-radius: var(--r-full); transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.foot__nav a, .nav__menu a:hover {
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  box-shadow: 0 0 0 9px color-mix(in oklab, var(--brand) 12%, transparent);
}
.fact:hover dd, .item:hover, .review:hover { transform: none; }
.fact:hover dd, .item:hover, .review:hover { transform: translateY(-3px); box-shadow: 0 10px 28px color-mix(in oklab, var(--brand) 14%, transparent); }

/* webit-touch */
@media (max-width: 767px) {
  .nav__inner { flex-wrap: wrap; overflow: visible; }
  .hero__actions, .hero__acts { flex-wrap: wrap; }
}
html.tier-premium .hero__lead { letter-spacing: -.01em; }
