/* ==========================================================
   하루로그 소개 페이지 (dailylog/index.html)
   메인 style.css 의 색·글꼴·버튼·헤더·푸터와 앱 소개 페이지 공통 요소를 쓰고,
   이 페이지에만 있는 영역만 정의한다.
   ========================================================== */

/* ---------- Hero ---------- */

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.log-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  width: 100%;
  justify-self: center;
}

.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54%;
  aspect-ratio: 9 / 17;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vw, 12px);
  padding: 13% 6% 6%;
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 0 0 6px var(--ink);
  transform: translate(-50%, -50%) rotate(-4deg);
  animation: phone-bob 6s ease-in-out infinite;
}

@keyframes phone-bob {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); }
  50% { transform: translate(-50%, calc(-50% - 10px)) rotate(-2deg); }
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 28%;
  height: 12px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.phone-title { font-family: var(--round); font-size: clamp(14px, 1.7vw, 18px); line-height: 1.2; }
.phone-streak {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.clip {
  padding: 6px;
  border-radius: 16px;
  background: var(--bg);
}

.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}
.clip-1 .clip-thumb { background: linear-gradient(160deg, #ffd9a8 0%, #ffb995 55%, #f59a85 100%); }
.clip-2 .clip-thumb { background: linear-gradient(160deg, #cfeadd 0%, #a9d8d1 60%, #8cc6c4 100%); }

.clip-time {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-family: var(--brand);
  font-size: 9px;
  letter-spacing: .02em;
}

.clip-sticker {
  position: absolute;
  right: 6px;
  bottom: 2px;
  font-size: clamp(18px, 2.4vw, 24px);
  transform: rotate(10deg);
}

.clip-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  transform: translate(-50%, -50%);
}
.clip-play::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  border-left: 9px solid var(--coral-deep);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.clip-memo {
  padding: 5px 4px 1px;
  font-family: var(--soft);
  font-size: clamp(10px, 1.2vw, 12px);
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-cta {
  margin-top: auto;
  padding: 8px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.fb-rec { left: 2%; top: 22%; font-family: var(--brand); color: var(--ink); transform: rotate(-8deg); animation: bob-a 5s ease-in-out infinite; }
.fb-music { right: 0; bottom: 20%; color: var(--coral-deep); transform: rotate(6deg); animation: bob-b 5.6s ease-in-out infinite; }

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0564a;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.log-art .d-heart { right: 12%; top: 8%; }
.log-art .d-star { left: 8%; bottom: 14%; }
.log-art .d-sparkle { right: 6%; top: 40%; }
.log-art .dot-1 { left: 10%; top: 50%; }
.log-art .dot-2 { left: 52%; bottom: 3%; }

/* ---------- How ---------- */

.how {
  background: var(--bg-2);
  padding: clamp(64px, 9vw, 112px) 0;
  border-radius: clamp(32px, 5vw, 56px);
  margin: 0 clamp(8px, 1.5vw, 20px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s ease;
}
.step:hover { transform: translateY(-4px) rotate(-1deg); }

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--brand);
  font-size: 15px;
  transform: translateX(-50%);
  box-shadow: 0 6px 14px -6px rgba(226, 113, 79, .8);
}

.step-ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 22px;
}
.step-ico svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-ico .fill { fill: currentColor; stroke: none; }
.s-1 .step-ico { background: var(--coral-soft); color: var(--coral-deep); }
.s-2 .step-ico { background: var(--mint); color: #3f8f6e; }
.s-3 .step-ico { background: var(--peach); color: var(--coral); }

.step h3 {
  font-family: var(--round);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 8px;
}
.step p { color: var(--ink-2); font-size: 15px; }

/* ---------- Features ---------- */

.features { padding: clamp(80px, 11vw, 136px) 0 clamp(56px, 8vw, 96px); }

.extras {
  margin-top: clamp(24px, 3vw, 32px);
  padding: 24px 28px;
  border-radius: 28px;
  border: 1.5px dashed var(--line);
}

.extras-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--round);
  font-size: 18px;
}
.extras-title .ico { color: var(--yellow); width: 20px; height: 20px; }

.extras-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}
.extras-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.extras-emoji {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 17px;
}

/* ---------- Safe ---------- */

.safe { padding: clamp(32px, 5vw, 56px) 0 clamp(72px, 10vw, 120px); }

.safe-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.safe-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  width: 100%;
  justify-self: center;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: var(--mint);
}
.safe-emoji { font-size: clamp(88px, 12vw, 128px); transform: rotate(-8deg); }
.sd-heart { width: 34px; height: 34px; fill: var(--coral); right: 12%; top: 14%; transform: rotate(12deg); }
.sd-sparkle { width: 24px; height: 24px; fill: var(--yellow); left: 14%; bottom: 18%; }

.safe-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.safe-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.safe-points li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2714f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .log-nav { display: none; }
  .log-art { max-width: 420px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .safe-inner { grid-template-columns: 1fr; }
  .safe-art { max-width: 240px; }
}



@media (max-width: 560px) {
  .extras-list { grid-template-columns: 1fr; }
  .phone { width: 60%; border-radius: 28px; }
  .float-badge { font-size: 12px; padding: 5px 10px; }
}
