/* 색은 앱 디자인 토큰(mobile/src/theme/tokens.ts)과 같은 값을 쓴다. */
:root {
  --green: #009559;
  --green-fill: #00864F;
  --green-dark: #00713F;
  --green-light: #E6F4EC;
  --green-ink: #0B3A24;
  --ink: #14171A;
  --ink2: #20242A;
  --paper: #FFFFFF;
  --paper2: #F4F6F4;
  --line: #E2E5E1;
  --grey: #6B7280;
  --gold: #E0A730;
  --radius: 20px;
}

/* 화면 모드: 시스템(기본, 기기 설정을 따름)·라이트·다크. 고른 값은 <html data-theme>에 붙는다 */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  --green-dark: #5BD69A;
  --green-light: #11301F;
  --green-ink: #C9F0DA;
  --ink: #EEF1EF;
  --ink2: #D9DEDB;
  --paper: #121413;
  --paper2: #1D201E;
  --line: #2F3431;
  --grey: #9AA19D;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green-dark: #5BD69A;
    --green-light: #11301F;
    --green-ink: #C9F0DA;
    --ink: #EEF1EF;
    --ink2: #D9DEDB;
    --paper: #121413;
    --paper2: #1D201E;
    --line: #2F3431;
    --grey: #9AA19D;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 로고 */
.logo {
  display: inline-flex; align-items: center; gap: 1px;
  font-weight: 900; font-size: 24px; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.clover { width: 0.95em; height: 0.95em; color: var(--green); }
.logo-sm { font-size: 18px; }

/* 상단 메뉴 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--grey); }
.nav-links a:hover { color: var(--ink); }

/* 화면 모드 선택 */
.nav-right { display: flex; align-items: center; gap: 28px; }
.theme-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper2);
}
.theme-switch button {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--grey);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.theme-switch button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* 공통 */
.eyebrow { color: var(--green-dark); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.section { padding: 112px 0; }
.section-title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; margin-bottom: 48px; }
.lead { font-size: 18px; color: var(--grey); max-width: 34em; }
.hl { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-fill); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border: 1px solid var(--line); background: var(--paper); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--grey); }
.card-num { display: block; font-weight: 800; color: var(--green); margin-bottom: 16px; }

/* 휴대폰 목업 */
.phone {
  margin: 0; width: 300px; aspect-ratio: 9 / 18.5;
  border-radius: 44px; padding: 12px;
  background: #0E1110;
  box-shadow: 0 30px 60px -20px rgba(0, 60, 30, .35), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 33px; background: #fff;
}
.phone-sm { width: 280px; }

/* 히어로 */
.hero {
  padding: 88px 0 104px;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--green) 18%, transparent), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 900; margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.float-card {
  position: absolute; left: -10px; bottom: 56px; max-width: 250px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.25);
  font-size: 14px; font-weight: 600;
}
.float-card p { margin-top: 8px; }
.chip {
  display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--green-light); color: var(--green-dark); font-size: 13px; font-weight: 700;
}

/* 문제 */
.problem { background: var(--paper2); }
.problem .card { background: var(--paper); }

/* 작동 방식 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--green-light); }
.steps h3 { font-size: 20px; margin: 18px 0 10px; color: var(--green-ink); }
.steps p { color: var(--green-ink); opacity: .85; }
.step-badge {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-fill); color: #fff; font-weight: 800;
}

/* 기능 */
.features { background: var(--paper2); }
.feature {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px;
  padding: 40px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse .feature-copy { order: 2; }
.feature-text { grid-template-columns: 1fr; }
.feature-text .feature-copy > p { max-width: 40em; }
.feature-copy h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.feature-copy > p { color: var(--grey); font-size: 17px; max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* 약속 */
.promise { background: #0B3A24; color: #fff; }
.eyebrow-light { color: #5BD69A; }
.card-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.card-dark h3 { color: #fff; }
.card-dark p { color: #C9F0DA; }

/* 로드맵 */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.timeline li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.timeline li.now { border: 2px solid var(--green); background: var(--green-light); }
.timeline li.now h3, .timeline li.now p { color: var(--green-ink); }
.phase { display: block; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.phase em {
  font-style: normal; font-size: 12px; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--green-fill); color: #fff; vertical-align: 2px;
}
.timeline h3 { font-size: 20px; margin-bottom: 8px; }
.timeline p { color: var(--grey); }

/* 출시 안내 */
.contact { background: var(--paper2); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .section-title { margin-bottom: 16px; }
.clover-lg { width: 56px; height: 56px; margin-bottom: 24px; }
.store-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 170px; padding: 12px 22px; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 700;
}
.store small { font-weight: 500; opacity: .7; font-size: 12px; }

/* 푸터 */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--grey); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--grey); }
.footer-links a { color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--ink); }

/* 태블릿·휴대폰 */
@media (max-width: 900px) {
  .hero-inner, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature .phone { justify-self: center; }
  .grid-3, .steps, .timeline { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .theme-switch button { padding: 0 10px; }
  .hero { padding: 56px 0 72px; }
  .phone { width: 260px; border-radius: 38px; padding: 10px; }
  .phone img { border-radius: 29px; }
  .float-card { left: 0; bottom: 24px; max-width: 210px; }
  .section-title { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
