/* ============================================================
   POOMARU — 파스텔 패널(E)
   화면 하나 = 색 패널 하나. 상품 색은 products.js의 color로 주입.
   ============================================================ */
:root {
  --ink: #2b2b2b; --ink-soft: #5a5a5a; --cream: #FAF7F0; --sage: #DCE7D6; --line: rgba(43,43,43,.14);
  --r: 32px;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --font-en: 'DM Sans', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* NOTE: html{overflow-x:hidden} 금지 — iOS에서 fixed 내비 깨짐. 오버플로는 요소 단위로 */
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.9; font-size: 15.5px; letter-spacing: .02em; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
h1, h2, h3 { font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.k { font-family: var(--font-en); font-size: 12px; letter-spacing: .3em; color: var(--ink-soft); display: block; margin-bottom: 20px; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 15px 28px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .25s, opacity .25s; }
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn.light { background: #fff; color: var(--ink); }
.link { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tags span { background: rgba(255,255,255,.75); padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.btns { margin-top: 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* header */
.site-header .wrap { max-width: none; padding: 0 60px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 12px 0; transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 72px; width: auto; }
.gnav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.gnav a { white-space: nowrap; }
.gnav .btn { padding: 10px 20px; font-size: 13px; }
.nav-toggle { display: none; }

/* panels */
.panel { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 100px 60px 60px; }
.panel.rev .copy { order: 2; }
.panel .copy h1, .panel .copy h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.4; }
.panel .copy p { margin-top: 22px; font-size: 15.5px; color: var(--ink-soft); max-width: 460px; }
.ph { position: relative; height: 76vh; min-height: 420px; }
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.panel.product { grid-template-columns: 1fr 1.3fr; }
.panel.product.rev { grid-template-columns: 1.3fr 1fr; }   /* 미디어가 왼쪽일 때도 미디어 칸을 넓게 */
.panel.product.rev .media { justify-content: flex-start; }
.panel.product .copy { padding: 0 4%; }

.panel.product .copy h2 { font-size: clamp(30px, 3.6vw, 52px); }
.media { display: flex; gap: 18px; height: 70vh; min-height: 420px; justify-content: flex-end; }
.media .ph { flex: 1; height: auto; min-height: 0; max-width: 520px; }
.media .ph > img { object-position: 60% center; }
.vcard { position: relative; height: 100%; aspect-ratio: 9 / 16; flex: none; border-radius: 26px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 24px 50px rgba(0,0,0,.18); background: #000; }
.vcard video { width: 100%; height: 100%; object-fit: cover; }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.92); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 24px 14px 16px; font: 700 14px var(--font-body); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .25s; }
.vplay:hover { transform: translate(-50%, -50%) scale(1.05); }
.vplay span { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; }
.vplay span::after { content: ''; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.vplay.sm { padding: 8px; }
.vplay.sm span { width: 40px; height: 40px; }
.vplay.sm span::after { left: 16px; top: 13px; }

/* hero — 영상은 카드가 아니라 패널 배경에 그라데이션으로 녹아들게(기존 사이트 방식) */
.hero { background: var(--sage); padding-right: 0; gap: 0; grid-template-columns: minmax(360px, 36%) 1fr; }
.hero .copy { padding-right: 24px; }
.hero .ph { height: 100vh; min-height: 560px; margin: -100px 0 -60px; }
.hero .ph > video { border-radius: 0; background: var(--sage); }
.hero .ph::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--sage) 0%, rgba(220,231,214,.6) 10%, rgba(220,231,214,0) 28%),
              linear-gradient(180deg, var(--sage) 0%, rgba(220,231,214,0) 18%, rgba(220,231,214,0) 82%, var(--sage) 100%); }

/* coming soon */
.panel.soon { min-height: 0; display: block; padding: 70px 0; }
.soon-item { display: grid; grid-template-columns: 180px 1fr 1.4fr; gap: 30px; align-items: center; }
.soon-item h3 { font-size: 24px; }
.soon-item p { color: var(--ink-soft); font-size: 14.5px; }
.soon-item .k { margin: 0; }

/* about */
.about { background: var(--cream); min-height: 0; display: block; padding: 130px 0; }
.about .lead { max-width: 700px; margin-bottom: 70px; }
.about .lead h2 { font-size: clamp(28px, 3.6vw, 44px); }
.about .lead p { margin-top: 20px; color: var(--ink-soft); }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promise div { background: #fff; border-radius: 24px; padding: 34px 30px; }
.promise span { font-family: var(--font-en); font-size: 12px; letter-spacing: .3em; color: var(--ink-soft); }
.promise h3 { font-size: 20px; margin: 10px 0 6px; }
.promise p { font-size: 14px; color: var(--ink-soft); }

/* instagram */
.insta { min-height: 0; padding: 130px 60px; background: #fff; }
.insta .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.insta .grid a { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); position: relative; }
.insta .grid a::after { content: ''; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l8-5.5z' fill='%232b2b2b'/%3E%3C/svg%3E") center/16px no-repeat; }
.insta .grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.insta .grid a:hover img { transform: scale(1.05); }
.insta .sns-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn-ig { background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); }
.btn-tt { background: #000; }
.btn-tt svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }

/* faq + news */
.faqnews { background: var(--cream); min-height: 0; display: block; padding: 130px 0; }
.faqnews .two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 90px; }
.faqnews h2 { font-size: 30px; margin-bottom: 22px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 16px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 14.5px; }
.news-list li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.news-list li:last-child { border-bottom: 1px solid var(--line); }
.news-list .date { font-family: var(--font-en); font-weight: 500; color: var(--ink-soft); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 110px 0 36px; text-align: center; }
.site-footer h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; }
.site-footer .lead { opacity: .75; margin: 14px 0 32px; }
.footer-bottom { margin-top: 90px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 30px; font-size: 13px; }
.footer-bottom img { height: 52px; filter: brightness(0) invert(1); opacity: .9; }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.copyright { font-size: 12px; opacity: .55; margin-top: 30px; }

/* ── product page ── */
.pd-hero { padding: 130px 60px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pd-hero .ph { height: auto; aspect-ratio: 4 / 5; max-height: 720px; }
.pd-hero .ph.sq { aspect-ratio: 1; max-height: none; }  /* 디자인된 상세 이미지: 잘리지 않게 원본 비율 */
.crumb { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 20px; }
.pd-hero h1 { font-size: clamp(30px, 3.6vw, 48px); }
.pd-hero .tag { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.pd-hero .lead { margin-top: 20px; }
.buy { margin-top: 30px; background: #fff; border-radius: 24px; padding: 26px; }
.buy .label { font-size: 12.5px; color: var(--ink-soft); display: block; margin-bottom: 12px; }
.buy .row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy .btn.alt { background: var(--cream); color: var(--ink); }
.buy .note { font-size: 11.5px; color: var(--ink-soft); margin-top: 12px; line-height: 1.7; }
.pd-video { padding: 0 60px 90px; }
.pd-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: #000; }
.pd-video.vert { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pd-video.vert video { aspect-ratio: 9 / 16; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 30px; }
.pd-video.vert h2 { font-size: clamp(28px, 3.4vw, 42px); }
.pd-video.vert p { margin-top: 18px; color: var(--ink-soft); max-width: 440px; }
.howto { background: var(--cream); padding: 120px 0; }
.howto h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 44px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps.two { grid-template-columns: repeat(2, 1fr); }
.steps div { background: #fff; border-radius: 24px; overflow: hidden; }
.steps img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.steps .t { padding: 22px 24px 26px; }
.steps .n { font-family: var(--font-en); font-size: 12px; letter-spacing: .3em; color: var(--ink-soft); }
.steps h3 { font-size: 19px; margin: 6px 0 4px; }
.steps p { font-size: 14px; color: var(--ink-soft); }
.howto .note { margin-top: 24px; font-size: 13px; color: var(--ink-soft); }
.story { padding: 100px 0; }
.story .k { text-align: center; }
.story img { width: 100%; border-radius: 20px; margin: 0 auto 18px; max-width: 1000px; }
.story-buy { max-width: 1000px; margin: 36px auto 0; }
.pd-cta-fixed { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  /* 좁은 화면: 카드는 폭 기준 9:16, 사진은 3:4 — 높이가 거의 같아 stretch 로 인한 비율 깨짐(영상 확대·잘림) 없음 */
  .media { height: auto; min-height: 0; gap: 12px; justify-content: flex-start; align-items: flex-start; }
  .media .ph { height: auto; aspect-ratio: 3 / 4; }
  .vcard { height: auto; width: 42%; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; z-index: 102; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.scrolled { backdrop-filter: none; } /* fixed 자식 컨테이닝 블록 함정 */
  .gnav { position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; gap: 26px; font-size: 18px; transform: translateY(-100%); opacity: 0; transition: transform .4s, opacity .4s; }
  .gnav.open { transform: none; opacity: 1; }
  .panel { gap: 32px; padding: 100px 32px 56px; }
  .ph { height: 60vh; }
  .faqnews .two { grid-template-columns: 1fr; gap: 60px; }
  .soon-item { grid-template-columns: 1fr; gap: 8px; }
  .pd-hero, .pd-video.vert { grid-template-columns: 1fr; gap: 36px; padding-left: 32px; padding-right: 32px; }
  .pd-video { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 720px) {
  .brand img { height: 52px; }
  .wrap, .site-header .wrap { padding: 0 20px; }
  .panel, .panel.product, .panel.product.rev { grid-template-columns: 1fr; min-height: 0; padding: 96px 20px 56px; gap: 28px; }
  .panel.rev .copy { order: 0; }
  .panel.product .copy { order: 2; }
  .panel .copy h1, .panel .copy h2 { font-size: 32px; }
  .ph { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .hero { padding-right: 20px; grid-template-columns: 1fr; }
  .hero .ph { aspect-ratio: 4 / 3; height: auto; min-height: 0; margin: 0; }
  .hero .ph > video { border-radius: 20px; }
  .hero .ph::after { display: none; }
  .panel.product .copy { padding: 0; }
  .vcard { height: auto; width: 40%; border-width: 4px; border-radius: 18px; }
  .vplay { padding: 10px 18px 10px 12px; font-size: 13px; }
  .about, .faqnews, .insta { padding: 90px 0; }
  .insta { padding-left: 20px; padding-right: 20px; }
  .promise { grid-template-columns: 1fr; }
  .insta .grid { gap: 8px; }
  .insta .grid a { border-radius: 12px; }
  .pd-hero { padding: 96px 20px 50px; }
  .pd-hero .ph, .pd-hero .ph.sq { aspect-ratio: 1; }
  .pd-video { padding: 0 20px 70px; }
  .pd-video.vert video { max-height: 70vh; }
  .howto, .story { padding: 80px 0; }
  .steps, .steps.two { grid-template-columns: 1fr; }
  .site-footer { padding: 80px 0 100px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .pd-cta-fixed { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
  .pd-cta-fixed .btn { flex: 1; justify-content: center; padding: 14px; font-size: 13.5px; }
}

/* 최대화 시 확대·잘림 방지 — .vcard video / .ph > video 의 cover 를 확실히 덮어쓴다 */
video:fullscreen, video:-webkit-full-screen, .vcard video:fullscreen, .ph > video:fullscreen { object-fit: contain !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; background: #000; }
