/* 소꿉 앱과 같은 색 (src/theme/tokens.ts · 시안 16, 10월 22일 채도 낮춤) */
:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --ink: #191f28;
  --ink2: #333d4b;
  --sub: #4e5968;
  --meta: #6b7684;
  --line: #e5e8eb;
  --outline: #d1d6db;
  --well: #f2f4f6;
  --primary: #4782dc;
  --primary-down: #2e69c2;
  --primary-ink: #326ec8;
  --primary-tint: #ebf1fa;
  --point: #ebf1fa;
  --point-ink: #2e69c2;
  --urgent: #d6515d;
  --blue: #ebf1fa;
  --peach: #ffede5;
  --bezel: #191f28;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; font-weight: 800; line-height: 1.25; }
p { margin: 0; color: var(--sub); }
.meta { color: var(--meta); font-size: 14px; }
img { max-width: 100%; }

/* 공통 */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 16px; border: 0;
  background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--primary-down); }
.btn:active { transform: scale(0.97); }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.secondary { background: var(--well); color: var(--sub); }
.btn.secondary:hover { background: var(--line); }
.btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.card { background: var(--card); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }

/* 위 막대 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(242, 244, 246, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; color: var(--sub); font-size: 15px; font-weight: 500; }
.nav-link:hover { color: var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 56px 0 72px; }
.eyebrow { color: var(--primary-ink); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.8vw, 20px); margin-top: 22px; max-width: 30em; }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.stores { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 14px;
  background: var(--card); border: 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2;
}
.store small { display: block; font-size: 12px; font-weight: 500; color: var(--meta); }
.store.soon { color: var(--meta); background: transparent; border: 1.5px dashed var(--outline); }

.hero-shots { position: relative; height: 640px; }
.phone { margin: 0; width: 300px; border-radius: 46px; background: var(--bezel); padding: 9px; box-shadow: 0 30px 60px -20px rgba(31, 36, 43, 0.35), 0 12px 24px -12px rgba(31, 36, 43, 0.2); }
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; aspect-ratio: 393 / 852; background: var(--bg); }
.hero-shots .phone { position: absolute; }
.hero-shots .front { right: 120px; top: 0; z-index: 2; }
.hero-shots .back { right: 0; top: 70px; width: 270px; transform: rotate(4deg); opacity: 0.96; }

/* 기능 */
.features { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
.feature { background: var(--card); border-radius: 36px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 56px 64px 0; overflow: hidden; }
.feature .phone { justify-self: center; width: 290px; border-radius: 46px 46px 0 0; padding-bottom: 0; box-shadow: 0 -10px 40px -20px rgba(31, 36, 43, 0.25); align-self: end; }
.feature .phone img { border-radius: 37px 37px 0 0; aspect-ratio: auto; height: 420px; object-fit: cover; object-position: top; }
.feature.flip .feature-copy { order: 2; }
.desk { margin-top: 0; background: var(--card); border-radius: 36px; padding: 56px 64px 56px; overflow: hidden; }
.desk-copy { max-width: 40em; }
.desk h2 { font-size: clamp(28px, 3.4vw, 40px); }
.desk-copy p:not(.eyebrow) { margin-top: 18px; font-size: 17px; }
.browser { margin: 40px 0 0; border-radius: 16px; background: #e9ecf0; padding: 0 10px 10px; box-shadow: 0 24px 50px -24px rgba(31, 36, 43, 0.3); }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.browser-bar span { width: 10px; height: 10px; border-radius: 5px; background: #c9ced5; }
.browser-bar em { margin: 0 auto; font-style: normal; font-size: 12px; color: var(--meta); background: var(--card); padding: 3px 14px; border-radius: 8px; }
.browser img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; border-radius: 8px; background: var(--bg); max-height: 520px; object-fit: cover; object-position: top left; }
.feature-copy { padding-bottom: 56px; }
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); }
.feature-copy p:not(.eyebrow) { margin-top: 18px; font-size: 17px; max-width: 26em; }

/* 그 밖에 */
.more, .start, .feedback { padding: 72px 0 0; }
.more h2, .start h2, .feedback h2 { font-size: clamp(26px, 3vw, 36px); }
.grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid li { background: var(--card); border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.grid strong { font-size: 17px; letter-spacing: -0.02em; font-weight: 700; }
.grid span { color: var(--sub); font-size: 15px; }

/* 시작하기 */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { background: var(--card); border-radius: 22px; padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.steps .num { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--primary-tint); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.steps strong { font-size: 17px; letter-spacing: -0.02em; font-weight: 700; }
.steps p { font-size: 15px; margin-top: 4px; }
.band { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 28px; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.band h3 { font-size: 22px; }
.band .meta { color: #c9ced5; margin-top: 6px; }
.band .btn { background: var(--primary); color: #fff; flex: none; }
.band .btn:hover { background: var(--primary-down); }

/* 의견 보내기 */
.feedback { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; padding-bottom: 24px; }
.feedback-copy { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.feedback-copy p:not(.meta) { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: 8px; color: var(--meta); font-size: 14px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chips span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 19px;
  border: 0; background: var(--well); color: var(--sub); font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color 0.15s ease, color 0.15s ease;
}
.chips input:checked + span { background: var(--primary-tint); color: var(--primary-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--meta); font-size: 14px; }
textarea, input[type='text'] { font: inherit; color: var(--ink); background: var(--well); border: 0; border-radius: 14px; padding: 13px 15px; width: 100%; }
textarea { min-height: 140px; resize: vertical; }
textarea:focus, input[type='text']:focus { outline: 2px solid var(--primary); }
.fb-form .btn, .fb-done .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { background: var(--point); color: var(--point-ink); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.error { color: var(--urgent); font-size: 14px; }

/* 아래 */
.foot { margin-top: 72px; border-top: 1px solid var(--line); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--meta); font-size: 14px; }

/* 의견 보내기 · 404 단독 페이지 */
.narrow { max-width: 520px; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 14px; }
.narrow .brand { padding: 0 4px 8px; }
.page-head { padding: 8px 4px 6px; display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { font-size: 30px; }
.narrow > .meta { padding: 0 4px; }
.foot-mini { text-align: center; color: var(--meta); font-size: 14px; padding-top: 8px; }
/* 개인정보처리방침 같은 긴 글: 조항마다 흰 카드 */
.doc { max-width: 720px; }
.doc section { background: var(--card); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.doc h2 { font-size: 17px; letter-spacing: -0.02em; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--ink2); margin: 0; }
.doc ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.doc ul ul { margin-top: 6px; gap: 4px; }
.doc strong { color: var(--ink); }
.doc .meta { font-size: 13px; color: var(--meta); }
.doc .table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--meta); font-weight: 600; border-top: 0; }
.doc td:first-child { font-weight: 600; white-space: nowrap; }
/* 아래 푸터 */
.foot-in { align-items: flex-start; }
.foot-brand { display: flex; flex-direction: column; gap: 4px; }
.foot-brand strong { color: var(--ink); font-size: 15px; }
.foot-links { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.foot a { color: var(--sub); }
@media (max-width: 640px) { .foot-links { align-items: flex-start; text-align: left; } }

/* 태블릿 · 폰 */
@media (max-width: 920px) {
  main { overflow-x: clip; }
  .hero { grid-template-columns: 1fr; padding: 32px 0 40px; gap: 32px; }
  .hero-shots { height: 520px; overflow: hidden; margin: 0 -20px; padding: 0 20px; }
  .hero-shots .front { left: 50%; right: auto; transform: translateX(-62%); width: 250px; }
  .hero-shots .back { left: 50%; right: auto; transform: translateX(-2%) rotate(4deg); top: 56px; width: 220px; }
  .feature { grid-template-columns: 1fr; padding: 40px 28px 0; gap: 28px; border-radius: 28px; }
  .desk { padding: 40px 28px 32px; border-radius: 28px; }
  .browser { margin-top: 28px; padding: 0 6px 6px; border-radius: 12px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { padding-bottom: 0; }
  .feature .phone { width: 260px; }
  .feature .phone img { height: 360px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .feedback { grid-template-columns: 1fr; gap: 24px; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 560px) {
  .nav-link { display: none; }
  .nav-in { padding: 10px 16px; }
  main { padding: 0 16px; }
  .hero h1 { font-size: 34px; }
  .cta .btn, .band .btn { width: 100%; }
  .cta { align-items: stretch; }
  .stores .store { flex: 1; min-width: 150px; }
  .hero-shots { height: 440px; }
  .hero-shots .front { width: 215px; }
  .hero-shots .back { width: 190px; top: 48px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
