/* 모먼트웍스 홈페이지 공통 스타일
   회사 색은 라벤더, 앱마다 자기 색 (앤픽 파랑+노랑, 슬쩍 라임, 치익 피치) */
:root {
  --ground: #f7f5ff;
  --surface: #ffffff;
  --plate: #e9e3ff;
  --ink: #221a4f;
  --sub: #554c7d;
  --faint: #8a83a8;
  --line: #e4def7;
  --brand: #7c5cff;
  --btn: #5b3fd9;
  --btn-hover: #4a30c4;
  --btn-ink: #ffffff;
  --anpick: #2f6bff;
  --anpick-face: #ffd84d;
  --anpick-ink: #14213f;
  --lime: #e3f98b;
  --lime-ink: #1f2a00;
  --peach: #ffe3c7;
  --peach-ink: #3d2210;
  --up: #e5384a;
  --down: #2f6bff;
  --desk: #1c2232;
  --widget: rgba(20, 24, 31, 0.94);
  --widget-ink: #eef1f6;
  --radius: 22px;
  --f-body: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --f-brand: "Sora", "Pretendard Variable", Pretendard, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img, svg { max-width: 100%; }
a { color: var(--btn); }
a:hover { color: var(--btn-hover); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 14px; z-index: 100; }

/* 머리글 */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 255, 0.88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.brand span { font-family: var(--f-brand); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav a { color: var(--sub); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; background: var(--btn); color: var(--btn-ink); transition: background .15s, transform .15s; }
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn.small { min-height: 42px; padding: 9px 16px; font-size: 15px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--plate); color: var(--ink); }
.btn.app { background: var(--anpick); color: #fff; }
.btn.app:hover { background: #1f57e6; color: #fff; }
.btn svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }

/* 공통 구역 */
main { display: block; }
.section { padding-block: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 46em; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--sub); }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--sub); font-size: 17px; }
.lead { font-size: 19px; color: var(--sub); max-width: 32em; }
.note { font-size: 14px; color: var(--faint); }

/* 첫 화면 큰 구역 */
.hero { padding-block: 72px 0; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.14; letter-spacing: -0.035em; }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-art { flex: 1 1 420px; min-width: 0; }

/* 앱 카드 묶음 (첫 화면 오른쪽) */
.app-stack { background: var(--plate); border-radius: 32px; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.app-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: 20px; padding: 14px 18px; text-decoration: none; color: var(--ink); }
a.app-row:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--brand); }
.app-row svg { width: 54px; height: 54px; flex-shrink: 0; }
.app-row .t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.app-row strong { font-size: 18px; }
.app-row .t span { font-size: 14px; color: var(--sub); }
.pill { font-size: 13px; font-weight: 700; border-radius: 99px; padding: 4px 11px; white-space: nowrap; }
.pill.live { background: #e3ebff; color: #1d4fd6; }
.pill.soon { background: #efecf7; color: var(--sub); }

/* 앱 소개 카드 */
.app-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.app-card { flex: 1 1 300px; min-width: 0; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.app-card .tag { font-family: var(--f-brand); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; }
.app-card h3 { font-size: 40px; line-height: 1.1; }
.app-card p { font-size: 16px; }
.app-card .foot { margin-top: auto; }
.app-card.anpick { background: var(--anpick); color: #fff; }
.app-card.anpick .tag { color: var(--anpick-face); }
.app-card.anpick p { color: #e6edff; }
.app-card.anpick .btn { background: var(--anpick-face); color: var(--anpick-ink); }
.app-card.anpick .btn:hover { background: #ffe57a; }
.app-card.lime { background: var(--lime); color: var(--lime-ink); }
.app-card.lime .tag { color: #3a6a00; }
.app-card.peach { background: var(--peach); color: var(--peach-ink); }
.app-card.peach .tag { color: #a04e12; }
.soon-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; box-shadow: inset 0 0 0 2px currentColor; }

/* 원칙 3가지 */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.value svg { width: 40px; height: 40px; color: var(--brand); }
.value h3 { font-size: 20px; }
.value p { color: var(--sub); font-size: 15.5px; }

/* 아래쪽 띠 */
.band { margin-top: 96px; background: var(--ink); color: #f1edff; }
.band .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { font-size: clamp(26px, 3.6vw, 34px); }
.band p { color: #c9c1ef; margin-top: 6px; }
.band .btn { background: var(--anpick-face); color: var(--anpick-ink); }
.band .btn:hover { background: #ffe57a; color: var(--anpick-ink); }

/* 바탕화면 미리보기 (앤픽 위젯 예시) */
.desk { position: relative; border-radius: 28px; background: linear-gradient(140deg, #2a3656 0%, #1c2232 55%, #151a26 100%); min-height: 420px; overflow: hidden; padding: 44px 28px 28px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 20px; flex-wrap: wrap-reverse; }
.desk .note-tag { position: absolute; left: 22px; top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.w-stack { display: flex; flex-direction: column; gap: 7px; width: min(100%, 400px); font-variant-numeric: tabular-nums; }
.w { display: grid; grid-template-columns: 1fr auto 82px; align-items: baseline; gap: 12px; background: var(--widget); color: var(--widget-ink); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 11px; padding: 11px 15px; font-size: 16px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.w .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.w .p { font-weight: 700; }
.w .r { text-align: right; font-weight: 600; font-size: 15px; }
.w .x { font-size: 12px; color: #f0b14a; margin-left: 5px; font-weight: 600; }
.u { color: #ff5b6b; } .d { color: #6f9dff; }
.chart-pop { width: min(100%, 320px); background: rgba(20, 24, 31, 0.97); color: var(--widget-ink); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 14px 16px 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); align-self: flex-start; font-variant-numeric: tabular-nums; }
.chart-pop .t { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 16px; gap: 10px; }
.chart-pop .t span { font-size: 14px; }
.chart-pop .per { display: flex; gap: 5px; margin-top: 6px; font-size: 12.5px; color: #9aa4b5; }
.chart-pop .per b { background: rgba(127, 127, 127, 0.3); color: var(--widget-ink); border-radius: 5px; padding: 0 7px; font-weight: 600; }
.chart-pop .per i { font-style: normal; padding: 0 5px; }
.chart-pop svg { display: block; width: 100%; height: auto; margin-top: 8px; }

/* 기능 */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e3ebff; color: #1d4fd6; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-top: 6px; }
.feature p { color: var(--sub); font-size: 15.5px; }
.more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.more span { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 14.5px; color: var(--sub); }

/* 받는 법 */
.download { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 36px; }
.download .left { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.download .left h2 { font-size: clamp(28px, 4vw, 36px); }
.steps { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; background: var(--ground); border-radius: 16px; padding: 16px 18px; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--plate); color: var(--btn); font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.steps b { font-weight: 700; }
.steps small { display: block; color: var(--sub); font-size: 14px; margin-top: 2px; }

/* 자주 묻는 질문 */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--sub); }

/* 요금 */
.beta-banner { background: var(--btn); color: #fff; border-radius: 22px; padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.beta-banner strong { font-size: 20px; }
.beta-banner span { color: #e4ddff; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.max { border: 2px solid #f2c400; }
.plan .ribbon { position: absolute; top: -14px; left: 24px; background: var(--anpick-face); color: var(--anpick-ink); font-weight: 800; font-size: 13px; border-radius: 99px; padding: 3px 12px; }
.plan .nm { font-size: 22px; font-weight: 800; }
.plan.pro .nm { color: #2f5fe0; }
.plan.max .nm { color: #9a7400; }
.plan .pr { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .pr small { font-size: 16px; font-weight: 500; color: var(--sub); letter-spacing: 0; }
.plan .yr { font-size: 14px; color: var(--sub); min-height: 22px; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid #16a37a; border-bottom: 2.5px solid #16a37a; transform: rotate(-45deg); }
.plan li.off { color: var(--faint); }
.plan li.off::before { border: 0; height: 2px; top: 12px; background: var(--faint); transform: none; width: 10px; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
table.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
table.compare th, table.compare td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--line); }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { font-size: 14px; color: var(--sub); font-weight: 700; background: var(--ground); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tr.group td { background: var(--ground); font-size: 13px; font-weight: 700; color: var(--sub); letter-spacing: 0.04em; }
.yes { color: #138a68; font-weight: 700; }
.no { color: var(--faint); }

/* 문서 (약관 등) */
.doc { max-width: 820px; padding-block: 56px 0; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); }
.doc .meta { color: var(--sub); margin-top: 10px; font-size: 15px; }
.draft { margin-top: 22px; background: #fff6d6; color: #5c4700; border-radius: 14px; padding: 14px 18px; font-size: 15px; }
.doc h2 { font-size: 21px; margin-top: 40px; margin-bottom: 10px; }
.doc p, .doc li { color: #3a3360; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; background: var(--surface); }
.doc th { background: var(--plate); font-weight: 700; }
.doc .tbl { overflow-x: auto; }
.blank { background: #fff0a8; color: #4a3b00; border-radius: 4px; padding: 0 4px; }
.toc { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { display: block; padding: 3px 0; text-decoration: none; color: var(--sub); break-inside: avoid; }
.toc a:hover { color: var(--btn); }

/* 바닥글 */
.site-foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { padding-block: 36px 44px; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.foot-biz { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--sub); }
.foot-biz strong { font-family: var(--f-brand); font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--btn); text-decoration: underline; }
.foot-links a.strong { color: var(--btn); }
.copy { width: 100%; font-size: 13px; color: var(--faint); }

/* 좁은 화면 */
@media (max-width: 900px) {
  .values, .features, .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .site-head .wrap { min-height: 60px; padding-block: 8px; }
  .nav { width: 100%; order: 3; gap: 4px 18px; font-size: 14.5px; }
  .section { padding-block: 64px 0; }
  .hero { padding-block: 44px 0; }
  .desk { min-height: 0; padding: 18px; }
  .w { grid-template-columns: 1fr auto 70px; font-size: 14.5px; padding: 10px 12px; }
  .toc { columns: 1; }
  .app-card h3 { font-size: 34px; }
}
