/* 마밋 랜딩 — 색·간격·글꼴은 앱(app_flutter/lib/theme/app_theme.dart)과 같은 값 */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/fonts/pretendard-400.woff") format("woff"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/fonts/pretendard-600.woff") format("woff"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/fonts/pretendard-700.woff") format("woff"); }

:root {
  color-scheme: light;
  --red-50: #FFF1F1;
  --red-100: #FFE5E6;
  --red-500: #F15153;
  --red-700: #D12628;
  --gray-50: #F7F9FC;
  --gray-100: #F1F4F8;
  --gray-200: #E6E9ED;
  --gray-400: #B3B6BB;
  --gray-600: #6F747B;
  --gray-700: #51555A;
  --gray-800: #303439;
  --gray-900: #1E2124;
  --wrap: 1120px;
  --pad: 20px;
  --header: 60px;
}
@media (min-width: 600px) { :root { --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red-700); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리줄 */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--gray-200); }
.top .wrap { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .brand { display: inline-flex; align-items: center; min-height: 44px; }
.top .brand img { height: 26px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; font-size: 15px; color: var(--gray-800); text-decoration: none; border-radius: 10px;
}
.top nav a:hover { background: var(--gray-100); }
.top nav a[aria-current="page"] { color: var(--red-700); }

/* 단추 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.btn-red { background: var(--red-700); color: #fff; }
.btn-red:hover { background: #B91D1F; }
.btn-line { background: #fff; color: var(--gray-900); border: 1px solid var(--gray-200); }
.btn-line:hover { background: var(--gray-50); }

/* 스토어 배지 — 공식 배지 그대로, 높이만 맞춤(배지 둘레 여백은 높이의 1/4 이상) */
.stores .soon {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: #fff; color: var(--red-700); font-size: 14px; font-weight: 700; line-height: 1.5;
}
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge { display: inline-flex; border-radius: 9px; }
.badge img { height: 52px; width: auto; }

/* 첫 화면 */
.hero { background: var(--red-500); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 48px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
/* 빨강 위 흰 글자는 대비 3.5:1이라 큰 글자(굵게 19px 이상)로만 쓴다 */
.hero .lead { margin-top: 20px; font-size: 19px; font-weight: 700; line-height: 1.55; max-width: 30em; }
.hero .stores { margin-top: 32px; }
.hero .shot { justify-self: center; width: min(100%, 460px); margin-bottom: -2px; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 0; min-height: 620px; }
  .hero .text { padding: 72px 0; }
  .hero .shot { align-self: end; justify-self: end; width: 100%; max-width: 540px; }
}

/* 소개·주요 기능 */
.section { padding: 80px 0; }
.section h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.3; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; }
.section .intro { margin-top: 16px; font-size: 17px; color: var(--gray-700); max-width: 36em; }
.features { margin-top: 48px; display: grid; gap: 32px; list-style: none; padding: 0; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.features .icon { width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--red-500); display: grid; place-items: center; }
.features .icon svg { width: 28px; height: 28px; }
.features h3 { margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--gray-900); }
.features p { margin-top: 8px; color: var(--gray-700); }

/* 앱 화면 둘러보기 — 휴대폰은 옆으로 넘기고, 넓은 화면은 격자 */
.screens { padding-bottom: 88px; }
.screens .rail {
  margin-top: 40px; display: grid; gap: 16px; list-style: none; padding: 0 var(--pad) 8px;
  grid-auto-flow: column; grid-auto-columns: min(78%, 320px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  -webkit-overflow-scrolling: touch;
}
.screens .rail-box { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; }
.card { scroll-snap-align: start; background: var(--gray-100); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.card .txt { padding: 28px 20px 0; }
.card h3 { font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--gray-900); }
.card p { margin-top: 8px; font-size: 15px; color: var(--gray-700); }
.card img { margin-top: auto; padding-top: 20px; width: 100%; }
@media (min-width: 700px) {
  .screens .rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; gap: 24px; }
}
@media (min-width: 1000px) { .screens .rail { grid-template-columns: repeat(3, 1fr); } }

/* 고객센터 띠 */
.help { background: var(--red-50); }
.help .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; gap: 24px; }
@media (min-width: 860px) { .help .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.help h2 { font-size: 26px; font-weight: 700; color: var(--gray-900); }
.help p { margin-top: 8px; color: var(--gray-700); }
.help .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 안내 페이지(고객센터·계정 삭제) */
.page { padding: 56px 0 88px; }
.page .wrap { max-width: calc(760px + var(--pad) * 2); }
.page h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.3; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; }
.page .lead { margin-top: 12px; font-size: 17px; color: var(--gray-700); }
.page h2 { margin-top: 56px; font-size: 22px; font-weight: 700; color: var(--gray-900); }
.page h2 + * { margin-top: 16px; }
.page p + p { margin-top: 10px; }
.page .muted { color: var(--gray-700); }

.contacts { display: grid; gap: 12px; }
@media (min-width: 600px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--gray-200); border-radius: 18px; text-decoration: none; }
.contact:hover { border-color: var(--gray-400); }
.contact span { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.contact b { font-size: 19px; color: var(--gray-900); }

.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; }
.path li { display: inline-flex; align-items: center; gap: 6px; }
.path li + li::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--gray-600); border-top: 2px solid var(--gray-600); transform: rotate(45deg); margin-right: 4px; }
.path b { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--gray-100); color: var(--gray-900); font-weight: 600; }

.steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps > li { position: relative; padding: 22px 22px 22px 64px; border: 1px solid var(--gray-200); border-radius: 18px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red-700); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center;
}
.steps h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.steps h3 + * { margin-top: 10px; }
.steps .btn { margin-top: 16px; }

.datalist { display: grid; gap: 0; border-top: 1px solid var(--gray-200); }
.datalist > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
@media (min-width: 600px) { .datalist > div { grid-template-columns: 150px 1fr; gap: 16px; } }
.datalist dt { font-weight: 700; color: var(--gray-900); }
.datalist dd { margin: 0; color: var(--gray-700); }

.links { list-style: none; padding: 0; border-top: 1px solid var(--gray-200); }
.links a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--gray-200); text-decoration: none; font-weight: 600; color: var(--gray-900); }
.links a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--gray-600); border-top: 2px solid var(--gray-600); transform: rotate(45deg); margin-right: 6px; }
.links a:hover { color: var(--red-700); }

/* 바닥 */
.foot { background: var(--gray-900); color: var(--gray-400); font-size: 14px; }
.foot .wrap { padding-top: 48px; padding-bottom: 56px; display: grid; gap: 20px; }
.foot img { height: 22px; width: auto; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 4px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; margin-left: -8px; margin-right: 8px; text-decoration: none; color: #fff; }
.foot ul a:hover { text-decoration: underline; }
.foot a.plain { color: var(--gray-400); }
.foot .strong { font-weight: 700; }
.page .note { margin-top: 40px; }
.page .cta { margin-top: 28px; }

/* 한두 낱말만 다음 줄로 떨어지지 않게 */
h1, h2, h3, .lead, .card p, .help p { text-wrap: balance; }
p, dd { text-wrap: pretty; }
/* 휴대폰: 배지 둘을 한 줄에(애플 최소 높이 40px 이상) */
@media (max-width: 599px) { .badge img { height: 46px; } .badges { gap: 12px; } }
