@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #ffffff;
  --gray-bg: #f2f4f6;
  --card: #ffffff;
  --text: #191f28;
  --text-2: #4e5968;
  --text-3: #8b95a1;
  --line: #e5e8eb;
  --leaf: #00a950;
  --leaf-text: #00793a;
  --leaf-soft: #e3f6ea;
  --pill: #f2f4f6;
  --pill-hover: #e5e8eb;
  --shadow: 0 12px 40px rgba(25, 31, 40, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113;
    --gray-bg: #1b1d21;
    --card: #23262b;
    --text: #f2f4f6;
    --text-2: #b0b8c1;
    --text-3: #7e8791;
    --line: #2c2f35;
    --leaf: #00a950;
    --leaf-text: #3ccf7f;
    --leaf-soft: #0e3b22;
    --pill: #2a2d33;
    --pill-hover: #343841;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* 머리말 */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark { display: block !important; }
}
nav { display: flex; gap: 4px; }
nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
}
nav a:hover { background: var(--pill); color: var(--text); }

/* 첫 화면 큰 문구 */
.hero { text-align: center; padding: 104px 0 72px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px); line-height: 1.22; font-weight: 800;
  letter-spacing: -0.045em; margin: 0 0 24px;
}
.hero h1 .leaf { color: var(--leaf); }
.hero p { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); margin: 0 auto; max-width: 560px; }
.hero .mark { width: 64px; height: auto; margin: 0 auto 36px; }

.eyebrow { font-size: 17px; font-weight: 700; color: var(--leaf-text); margin: 0 0 10px; }
.section-title {
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.3; font-weight: 800;
  letter-spacing: -0.04em; margin: 0 0 64px;
}

/* 앱 소개 */
.apps { padding: 40px 0 72px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; margin-bottom: 120px; }
.feature.flip .stage { order: 2; }
.stage {
  background: var(--gray-bg); border-radius: 32px; aspect-ratio: 1 / 0.92;
  display: flex; align-items: center; justify-content: center; padding: 40px; overflow: hidden;
}
.feature h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 16px; }
.feature p { color: var(--text-2); font-size: 18px; margin: 0 0 28px; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--leaf-text);
  background: var(--leaf-soft); border-radius: 999px; padding: 4px 12px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pill); color: var(--text); text-decoration: none;
  font-size: 15px; font-weight: 700; padding: 10px 10px 10px 18px; border-radius: 999px;
  transition: background 0.15s ease;
}
.pill:hover { background: var(--pill-hover); }
.pill .arrow {
  width: 26px; height: 26px; border-radius: 50%; background: var(--text-3); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}

/* 화면 미리보기(예시 앱 화면) */
.screen {
  width: 100%; max-width: 340px; background: var(--card); border-radius: 26px;
  box-shadow: var(--shadow); padding: 22px;
}
.screen .top { font-size: 13px; color: var(--text-3); font-weight: 600; margin-bottom: 4px; }
.screen .big { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.row .ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-size: 15px; line-height: 1.35; }
.row .t span { font-size: 13px; color: var(--text-3); }
.row .r { font-size: 13px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.row .amt { font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; }

/* 약속 */
.promises { background: var(--gray-bg); padding: 120px 0; }
.promises .section-title { margin-bottom: 48px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { background: var(--card); border-radius: 28px; padding: 32px 28px; }
.promise .num { font-size: 15px; font-weight: 800; color: var(--leaf-text); margin-bottom: 18px; }
.promise h4 { font-size: 22px; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.35; }
.promise p { color: var(--text-2); font-size: 16px; margin: 0; }

/* 문의 */
.contact { padding: 120px 0; text-align: center; }
.contact .section-title { margin-bottom: 20px; }
.contact p { color: var(--text-2); font-size: 18px; margin: 0 0 32px; }
.btn {
  display: inline-block; background: var(--text); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 16px 28px; border-radius: 16px;
}
.btn:hover { opacity: 0.88; }

/* 바닥글 */
footer.site { background: var(--gray-bg); color: var(--text-3); font-size: 14px; padding: 48px 0 56px; }
footer.site .mark { width: 28px; height: auto; margin-bottom: 18px; }
footer.site p { margin: 0 0 4px; }
footer.site a { color: var(--text-2); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px; }
footer.site .links a { text-decoration: none; font-weight: 600; }

/* 스크롤하면 나타나기 */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 첫 화면은 열리자마자 차례로 떠오른다 */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
h1.rise { animation-delay: 0.1s; }
p.rise { animation-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* 방침·안내 문서 */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.3; letter-spacing: -0.04em; font-weight: 800; margin: 12px 0 14px; }
.doc h2 { font-size: 22px; letter-spacing: -0.03em; margin: 52px 0 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; color: var(--text-2); }
.doc b { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--leaf-text); }
.doc .lead { font-size: 19px; color: var(--text-2); margin-bottom: 28px; }
.doc .meta { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.doc .note { background: var(--gray-bg); border-radius: 20px; padding: 18px 20px; margin: 20px 0; }
.doc .note p { margin: 0; }
.table { overflow-x: auto; margin: 16px 0 20px; border-radius: 16px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
th { background: var(--gray-bg); color: var(--text); font-weight: 700; }

@media (max-width: 820px) {
  .hero { padding: 80px 0 72px; }
  .feature { grid-template-columns: 1fr; gap: 32px; margin-bottom: 88px; }
  .feature.flip .stage { order: 0; }
  .stage { padding: 28px 20px; border-radius: 26px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promises, .contact { padding: 88px 0; }
  .section-title { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .doc { padding: 40px 16px 72px; }
  .brand img { height: 26px; }
  nav a { padding: 8px 8px; font-size: 14px; }
}

/* 조안 그린 #00A950 하나로 통일 (위 :root 토큰) */
.wordmark { font-family: "Bagel Fat One", "Pretendard Variable", sans-serif; font-weight: 400; letter-spacing: 0; }

/* 휴대폰 화면 캡처 */
.phone {
  width: 100%; max-width: 280px; border-radius: 34px; overflow: hidden;
  border: 8px solid #191f28; background: #191f28; box-shadow: var(--shadow);
}
.phone img { width: 100%; height: auto; }
.stage.tall { aspect-ratio: auto; padding: 48px 32px 0; align-items: flex-end; }
.stage.tall .phone { border-bottom: 0; border-radius: 34px 34px 0 0; }

/* 큰 초록 버튼 */
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--leaf); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 16px 26px; border-radius: 16px;
}
.btn-brand:hover { filter: brightness(0.95); }
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pill); color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 16px 24px; border-radius: 16px;
}
.btn-soft:hover { background: var(--pill-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.center .btn-row { justify-content: center; }

/* 대표 서비스 (첫 화면) */
.flagship { padding: 24px 0 120px; }
.flagship .panel {
  background: var(--leaf-soft); border-radius: 40px; padding: 64px 64px 0;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; overflow: hidden;
}
.flagship .copy { padding-bottom: 64px; }
.flagship .app-id { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.flagship .app-id img { width: 52px; height: 52px; border-radius: 14px; background: #fff; padding: 4px; }
.flagship .app-id b { font-size: 22px; }
.flagship h2 { font-size: clamp(32px, 4.8vw, 52px); line-height: 1.25; font-weight: 800; letter-spacing: -0.045em; margin: 0 0 18px; }
.flagship p { font-size: 18px; color: var(--text-2); margin: 0 0 32px; }
.flagship .phone-wrap { display: flex; justify-content: center; }
.flagship .phone { border-bottom: 0; border-radius: 34px 34px 0 0; max-width: 300px; }

/* 다른 앱 (작은 카드) */
.mini-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mini {
  display: flex; gap: 20px; align-items: center; background: var(--gray-bg); border-radius: 28px; padding: 28px;
  text-decoration: none; color: inherit; transition: background 0.15s ease;
}
.mini:hover { background: var(--pill-hover); }
.mini .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 32px; flex: none; }
.mini h3 { font-size: 21px; margin: 4px 0 4px; letter-spacing: -0.03em; }
.mini p { color: var(--text-2); font-size: 15px; margin: 0; }

/* 잠금화면 알림 예시 */
.noti {
  width: 100%; max-width: 360px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.noti img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.noti .t { flex: 1; }
.noti .t small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.noti .t b { display: block; font-size: 16px; margin: 2px 0; }
.noti .bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 10px; overflow: hidden; }
.noti .bar i { display: block; height: 100%; width: 69%; background: var(--leaf); border-radius: 4px; }
.stack { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }

/* 냥이 한마디 예시 */
.quote {
  width: 100%; max-width: 380px; background: var(--leaf-soft); border-radius: 22px; padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--leaf) 25%, transparent);
}
.quote .who { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--leaf-text); font-size: 15px; margin-bottom: 8px; }
.quote .who img { width: 26px; height: 26px; }
.quote p { margin: 0; color: var(--leaf-text); font-weight: 600; font-size: 17px; line-height: 1.55; }

/* 요금 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--card); border-radius: 28px; padding: 32px 28px; }
.plan.pro { outline: 2px solid var(--leaf); }
.plan h4 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.03em; }
.plan .sub { color: var(--leaf-text); font-weight: 700; margin: 0 0 18px; font-size: 15px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.plan li { margin-bottom: 8px; }
.plan .price { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 4px; }
.plan .price small { font-size: 16px; color: var(--text-2); font-weight: 600; }
.plan .note { font-size: 14px; color: var(--text-3); margin: 18px 0 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; color: var(--leaf-text); background: var(--leaf-soft); border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

/* 이것도 챙겨요 */
.extras .promise { background: var(--gray-bg); }
.extras .promise .num { font-size: 28px; margin-bottom: 12px; }

/* 자주 묻는 질문 */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; padding: 20px 36px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); margin: 0 0 20px; }

.section { padding: 120px 0; }
.section.gray { background: var(--gray-bg); }
.center { text-align: center; }

@media (max-width: 820px) {
  .flagship .panel { grid-template-columns: 1fr; padding: 40px 24px 0; border-radius: 30px; gap: 8px; }
  .flagship .copy { padding-bottom: 24px; }
  .plans { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
  .stage.tall { padding: 36px 24px 0; }
}
