/* 휙스 홈페이지: 앱의 팝 스킨과 같은 색 */
:root {
  --cream: #FFF4E2;
  --ink: #141414;
  --red: #FF4632;
  --blue: #2E5BFF;
  --yellow: #FFD02F;
  --green: #18B368;
  --muted: #5C5549;
  --line: 2.5px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 18px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* 상단 */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; border: var(--line); }
.brand b { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a {
  text-decoration: none; font-size: 15px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.top nav a:hover { background: #fff; }
.top nav a.lang { border: var(--line); background: #fff; }

/* 첫 화면 */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: center; padding: 40px 0 72px;
}
.kicker {
  display: inline-block; font-size: 14px; font-weight: 800;
  background: var(--yellow); border: var(--line); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 6.4vw, 68px); line-height: 1.12;
  letter-spacing: -0.035em; font-weight: 900; margin: 0 0 18px;
}
h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 12px 20px; font-weight: 800;
  border: var(--line); box-shadow: 4px 4px 0 var(--red);
}
.store small { display: block; font-size: 12px; font-weight: 600; opacity: .75; line-height: 1.2; }
.store span { line-height: 1.25; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* 폰 그림 */
.phone {
  justify-self: center; position: relative;
  width: 280px; aspect-ratio: 9 / 18.5;
  background: #fff; border: 3px solid var(--ink); border-radius: 40px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 48px 20px 22px;
  display: flex; flex-direction: column;
}
.stage { position: relative; flex: 1; }
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px; border-radius: 999px; background: var(--ink);
}
.card {
  position: absolute; inset: 0;
  border: var(--line); border-radius: 20px;
  background:
    radial-gradient(circle at 72% 28%, #FFE08A 0 11%, transparent 12%),
    linear-gradient(160deg, transparent 58%, #8FD3A8 58% 72%, #5FB884 72%),
    linear-gradient(180deg, #BFD7FF, #EAF2FF 60%);
  transform: rotate(-7deg) translate(-6px, -10px);
  animation: swipe 4.8s ease-in-out infinite;
}
.card .stamp {
  position: absolute; top: 16px; left: 14px;
  font-weight: 900; font-size: 20px; color: var(--red);
  border: 3px solid var(--red); border-radius: 10px; padding: 0 10px;
  background: #fff; transform: rotate(-10deg);
}
.card-back {
  position: absolute; inset: 0;
  border: var(--line); border-radius: 20px; background: #FCE6D2;
}
.dots { display: flex; justify-content: space-between; margin-top: 22px; padding: 0 6px; }
.dots i {
  width: 40px; height: 40px; border-radius: 50%; border: var(--line);
  display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; font-size: 18px;
}
@keyframes swipe {
  0%, 30% { transform: rotate(-7deg) translate(-6px, -10px); }
  50%, 60% { transform: rotate(-12deg) translate(-12px, -60px); opacity: 1; }
  75% { transform: rotate(-16deg) translate(-20px, -110px); opacity: 0; }
  76% { transform: rotate(0) translate(0, 0) scale(.96); opacity: 0; }
  100% { transform: rotate(-7deg) translate(-6px, -10px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* 구역 */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: var(--line); border-bottom: var(--line); }
h2 {
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.2;
  font-weight: 900; margin: 0 0 10px;
}
.sub { color: var(--muted); margin: 0 0 36px; }

.grid { display: grid; gap: 18px; }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

.box {
  background: #fff; border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
section.alt .box { background: var(--cream); }
.box h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.box p { margin: 0; color: var(--muted); font-size: 16px; }

.move { text-align: center; padding: 22px 14px; }
.move .arrow {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  border: var(--line); display: grid; place-items: center;
  font-size: 28px; font-weight: 900; color: #fff;
}
.move h3 { font-size: 18px; }
.move p { font-size: 14px; }

.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: var(--line); font-weight: 900; margin-bottom: 12px;
}

.bg-red { background: var(--red) !important; }
.bg-blue { background: var(--blue) !important; }
.bg-yellow { background: var(--yellow) !important; color: var(--ink) !important; }
.bg-green { background: var(--green) !important; }
.bg-ink { background: var(--ink) !important; }

.price { display: flex; flex-direction: column; gap: 4px; }
.price .tag { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.price.pro { background: var(--yellow) !important; }
.price.pro p { color: var(--ink); }

/* 글 페이지 (처리방침, 문의) */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 22px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 6px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li { margin: 6px 0; }
.doc .box { margin: 18px 0; }
.contact { display: grid; gap: 14px; margin: 28px 0; }
.contact a.box { display: block; text-decoration: none; }
.contact a.box:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.contact .label { font-size: 14px; color: var(--muted); font-weight: 700; }
.contact .value { font-size: 20px; font-weight: 800; }
details { border-bottom: 1.5px solid #E7DCC8; padding: 12px 0; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 8px 0 0; color: var(--muted); }

/* 아래 */
footer { border-top: var(--line); background: var(--ink); color: #fff; }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-top: 28px; padding-bottom: 36px; font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { text-decoration: none; opacity: .9; }
footer a:hover { opacity: 1; text-decoration: underline; }
footer .muted { opacity: .65; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 48px; }
  .g5 { grid-template-columns: repeat(2, 1fr); }
  .g5 .move:last-child { grid-column: span 2; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
}
@media (max-width: 380px) {
  .phone { width: 240px; }
}
.contact .box { margin: 0; }
