/* ------------------------------------------------------------
   더하니 랜딩 — 토큰
   흰 바탕 + 순흑 타이포, 사진과 앱 화면이 따뜻함을 담당.
   다크 면은 앱의 브라운(#2C1E16)을 그대로 씀.
------------------------------------------------------------ */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --gray: #6f6a64;
  --mute: #a39d95;
  --line: #e7e4df;
  --soft: #f4f2ee;          /* 사진·화면 받침 */
  --brown: #2c1e16;         /* 앱 주요 버튼 브라운 */
  --honey: #e8b73a;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --gutter: 20px;
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 901px) { :root { --gutter: 48px; } }

.display {
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

/* ---------- Bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.bar__logo img { height: 30px; width: auto; }
.bar__cta { font-size: 15px; font-weight: 700; text-decoration: none; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 6vh, 88px); }
.hero__kicker { font-size: 16px; font-weight: 600; color: var(--gray); margin-bottom: 20px; }
.hero__title {
  font-size: clamp(44px, min(8.4vw, 13.5vh), 128px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(24px, 4vh, 48px); }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--gray); max-width: 30em; }
.hero__note { margin-top: 12px; font-size: 14px; color: var(--mute); text-align: right; }
.hero__photo { margin-top: clamp(48px, 7vw, 96px); }
.hero__photo img { height: clamp(280px, 44vw, 600px); border-radius: 4px; background: var(--soft); width: 100%; object-fit: cover; object-position: 50% 40%; }

/* 페이지 로드 한 번만: 헤드라인 줄 단위로 올라옴 */
.js .hero__title .line > span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }

.strip { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.strip li { padding: 22px 0 22px 20px; font-size: 15px; font-weight: 600; border-right: 1px solid var(--line); }
.strip li:first-child { padding-left: 0; }
.strip li:last-child { border-right: 0; }

/* ---------- Stores ---------- */
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 172px; padding: 11px 20px;
  border-radius: 12px; border: 1.5px solid var(--ink);
  text-decoration: none; background: var(--paper); color: var(--ink);
}
.store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 18px; font-weight: 700; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; opacity: .7; }
.store:hover { background: var(--ink); color: #fff; }
.store.is-primary { background: var(--ink); color: #fff; }
.stores--dark .store { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.stores--dark .store:hover, .stores--dark .store.is-primary { background: #fff; color: var(--brown); border-color: #fff; }
.store:focus-visible, .bar__cta:focus-visible, summary:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }

/* ---------- Screens (앱 화면 받침) ---------- */
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- 기록하니 (sticky) ---------- */
.rec { padding: clamp(96px, 12vw, 180px) 0 clamp(64px, 8vw, 120px); }
.rec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); margin-top: clamp(56px, 7vw, 96px); }
.rec__stage { position: relative; }
.rec__stage .screen { position: sticky; top: calc(50vh - min(40vh, 340px) + 32px); height: min(80vh, 680px); width: auto; margin: 0 auto; }
.rec__stage .screen > img { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.rec__stage .screen > img.is-on { opacity: 1; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.step__tag { font-size: 15px; font-weight: 700; color: var(--gray); margin-bottom: 16px; }
.step h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.22; letter-spacing: -0.04em; margin-bottom: 20px; }
.step > p { color: var(--gray); max-width: 26em; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cats li { font-size: 14px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
.screen--inline { display: none; }

/* ---------- 기기 ---------- */
.dev { padding: clamp(96px, 12vw, 180px) 0; background: var(--soft); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); }
.head__lead { color: var(--gray); max-width: 20em; }
.dev__row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid #d9d5ce; }
.dev__when b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.dev__when span { font-size: 14px; color: var(--gray); }
.dev__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dev__items--one { grid-template-columns: 1fr 260px; align-items: end; }
.item__img { aspect-ratio: 1; background: var(--paper); border-radius: 20px; display: grid; place-items: center; overflow: hidden; }
.dev__items--one .item__img { aspect-ratio: auto; height: 462px; }
.item__img img { width: 62%; }
.dev__items--one .item__img img { width: auto; height: 78%; }
.item__img--soon { color: #b9b2a7; }
.item__img--soon svg { width: 48%; }
.item figcaption { padding-top: 18px; }
.item h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.item p { font-size: 15px; color: var(--gray); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ink); margin-bottom: 10px; }
.screen--side { border-radius: 22px; background: var(--paper); }

/* ---------- 쇼핑·콘텐츠 ---------- */
.more { padding: clamp(96px, 12vw, 180px) 0 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: space-between; gap: 20px; }
.trio figcaption { padding-top: 20px; }
.trio h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.trio p { font-size: 15px; color: var(--gray); }
.brands { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(96px, 10vw, 160px); }
.brands figure { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
.brands img { width: 100%; height: 100%; object-fit: cover; }
.brands figcaption { position: absolute; left: 24px; bottom: 20px; color: #fff; font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -0.03em; text-shadow: 0 1px 12px rgba(0,0,0,.25); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(96px, 12vw, 180px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.faq__grid > .display { position: sticky; top: 112px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 26px 48px 26px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--gray); }

/* ---------- CTA ---------- */
.cta { background: var(--brown); color: #fff; padding: clamp(96px, 12vw, 180px) 0 clamp(72px, 8vw, 120px); }
.cta__title { font-size: clamp(40px, 7.4vw, 108px); font-weight: 800; line-height: 1.08; letter-spacing: -0.05em; }
.cta__act { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(48px, 6vw, 88px); padding-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.qr { display: none; align-items: center; gap: 18px; }
.qr img { width: 112px; height: 112px; border-radius: 10px; background: #fff; padding: 6px; }
.qr p { font-size: 14px; color: rgba(255,255,255,.7); }
@media (hover: hover) and (pointer: fine) { .qr { display: flex; } }

/* ---------- Footer ---------- */
.foot { background: var(--brown); color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.85; padding: 48px 0 64px; border-top: 1px solid rgba(255,255,255,.12); }
.foot__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.foot__logo { height: 26px; width: auto; margin-bottom: 20px; }
.foot__links { display: flex; gap: 18px; }
.foot__links a { color: #fff; text-decoration: none; }
.foot__biz { font-style: normal; }
.foot__legal { margin-top: 18px; color: rgba(255,255,255,.45); }
.foot__copy { margin-top: 18px; color: rgba(255,255,255,.35); }

/* ---------- Reveal (섹션 제목·묶음만) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__title .line > span { animation: none; transform: none; }
  .rec__stage .screen > img { transition: none; }
}

/* ---------- ≤ 900px ---------- */
@media (max-width: 900px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__note { text-align: left; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip li, .strip li:first-child { padding: 14px 0; border-right: 0; border-top: 1px solid var(--line); }
  .strip li:nth-child(1), .strip li:nth-child(2) { border-top: 0; }
  .rec__grid { grid-template-columns: 1fr; }
  .rec__stage { display: none; }
  .step { min-height: 0; padding: 0 0 72px; }
  .screen--inline { display: block; margin-top: 32px; max-width: 340px; }
  .head { flex-direction: column; align-items: flex-start; }
  .dev__row { grid-template-columns: 1fr; gap: 24px; }
  .dev__items { grid-template-columns: repeat(2, 1fr); }
  .dev__items--one { grid-template-columns: 1fr; }
  .screen--side { display: none; }
  .trio { grid-template-columns: 1fr; gap: 48px; }
  .trio { grid-template-columns: 1fr; }
  .trio .screen { max-width: 340px; }
  .dev__items--one .item__img { height: auto; aspect-ratio: 16 / 11; }
  .brands { grid-template-columns: 1fr 1fr; }
  .brands figure:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid > .display { position: static; }
  .cta__act { flex-direction: column; align-items: flex-start; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- ≤ 480px ---------- */
@media (max-width: 480px) {
  .hero__sub br { display: none; }
  .stores { flex-direction: column; width: 100%; }
  .store { width: 100%; justify-content: center; }
  .hero__foot > div { width: 100%; }
  .dev__items { grid-template-columns: 1fr; }
  .item__img { aspect-ratio: 16 / 10; }
  .item__img img { width: auto; height: 80%; }
  .item__img--soon svg { width: auto; height: 62%; }
  .brands { grid-template-columns: 1fr; }
  .brands figure, .brands figure:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .cats li { font-size: 13px; }
}

/* 잠금화면 + 펼친 위젯 카드 */
.lock { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; background: #9fc0ee; }
.lock.is-on, .screen--inline .lock { opacity: 1; }
.screen--inline .lock { position: absolute; }
.lock > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lock .lock__card { position: absolute; left: 2.5%; right: 2.5%; top: 53%; width: 95%; height: auto; border-radius: 22px; box-shadow: 0 18px 40px rgba(20, 40, 80, .28); }
@media (prefers-reduced-motion: reduce) { .lock { transition: none; } }

/* ---------- 장면 사진 ---------- */
.scenes { padding: 0 0 clamp(96px, 12vw, 180px); }
.scenes__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(20px, 3vw, 40px); align-items: end; }
.scene img { width: 100%; height: auto; border-radius: 4px; background: var(--soft); }
.scene--b { padding-bottom: clamp(0px, 8vw, 120px); }
.scene figcaption { margin-top: 16px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- 기기 렌더 ---------- */
.item__img--render { background: #f4f2ee; }
.item__img--render img, .dev__items .item__img--render img { width: 100%; height: 100%; object-fit: cover; }
.dev__note { grid-column: 1 / -1; margin-top: 20px; font-size: 13px; color: var(--mute); }
.dev__items { position: relative; }

/* ---------- 쇼핑·콘텐츠 (2개) ---------- */
.more__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 6vw, 96px); align-items: center; }
.more__head .head__lead { margin-top: 24px; }
.more .trio { grid-template-columns: repeat(2, 300px); justify-content: end; gap: 24px; }

@media (max-width: 900px) {
  .scenes__grid { grid-template-columns: 1fr; }
  .scene--b { padding-bottom: 0; }
  .more__grid { grid-template-columns: 1fr; }
  .more .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 16px; }
  .more .trio .screen { max-width: none; }
}
@media (max-width: 480px) {
  .item__img--render { aspect-ratio: 1 / 1; }
  .item__img--render img { height: 100%; }
}

/* ---------- 휴대폰 프레임 (전체 화면, 잘림 없음) ---------- */
.screen {
  box-sizing: content-box;
  aspect-ratio: 1080 / 2196;
  border: 9px solid #141414;
  border-radius: 42px;
  background: #000;
  box-shadow: 0 0 0 1px #2a2a2a, 0 30px 60px -20px rgba(40, 30, 20, .35);
}
.screen::after { content: ""; position: absolute; top: 1.1%; left: 50%; width: 3.2%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #0b0b0b; z-index: 3; }
.screen img { object-fit: cover; object-position: top; border-radius: 33px; }
.rec__stage .screen { height: min(82vh, 700px); top: calc(50vh - min(41vh, 350px) + 32px); }
.screen--side { border-radius: 34px; border-width: 7px; }
.screen--side img { border-radius: 27px; }
.lock .lock__card { top: 38.5%; border-radius: 18px; }
.lock > img:first-child { border-radius: 33px; }
@media (min-width: 901px) {
  .more .trio { grid-template-columns: repeat(2, 280px); }
  .dev__items--one { grid-template-columns: 1fr 240px; }
  .dev__items--one .item__img { height: 488px; }
}
@media (max-width: 900px) {
  .screen--inline, .trio .screen { max-width: 300px; }
}
@media (max-width: 480px) {
  .screen { border-width: 7px; border-radius: 36px; }
  .screen img, .lock > img:first-child { border-radius: 29px; }
}
@media (max-width: 900px) {
  .dev__items--one .item__img img { width: 46%; height: auto; }
}
.dev__items--one .item__img--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ---------- 브랜드 갤러리 (가로 스크롤) ---------- */
.brands { display: block; margin-top: clamp(96px, 10vw, 160px); padding-bottom: clamp(64px, 8vw, 120px); }
.brands__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.brands__head h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.brands__head p { font-size: 14px; color: var(--gray); }
.brands__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 360px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.brands__track::-webkit-scrollbar { display: none; }
.brands__track:focus-visible { outline: 3px solid var(--honey); outline-offset: -3px; }
.brands figure, .brands figure:last-child { position: relative; aspect-ratio: 1 / 1; grid-column: auto; scroll-snap-align: start; border-radius: 4px; overflow: hidden; background: var(--soft); }
.brands figcaption { left: 16px; bottom: 14px; font-size: 17px; }
@media (max-width: 480px) { .brands__track { grid-auto-columns: 72vw; } }
.brands__head { align-items: center; }
.brands__nav { display: flex; gap: 8px; }
.brands__nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.brands__nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.brands__nav button:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
@media (hover: none) { .brands__nav { display: none; } }
