/* EWMD 소개 사이트 공용 스타일 (확장 프로그램과 같은 파란색) */
:root {
  --bg: #ffffff; --bg2: #f6f7f9; --fg: #111827; --muted: #5b6472; --line: #e5e7eb;
  --brand: #2563eb; --brand-fg: #ffffff; --pro: #7c3aed; --ok: #15803d; --no: #b91c1c;
  --card: #ffffff; --shadow: 0 1px 2px rgba(17,24,39,.06), 0 8px 24px rgba(17,24,39,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a; --bg2: #111c33; --fg: #f1f5f9; --muted: #a3adbd; --line: #263247;
    --brand: #4f8af7; --pro: #a78bfa; --ok: #4ade80; --no: #f87171;
    --card: #16213a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 상단 */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
nav.top-links { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
nav.top-links a { color: var(--muted); text-decoration: none; }
nav.top-links a:hover { color: var(--fg); }

/* 첫 화면 */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 4px 10px; border-radius: 999px; }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; margin: 16px 0 16px; letter-spacing: -.02em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--brand); color: var(--brand-fg); }
.btn.primary[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn.ghost { border-color: var(--line); color: var(--fg); background: var(--card); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* 팝업 모형 (실제 화면을 단순화한 그림) */
.mock { background: #111827; color: #e5e7eb; border-radius: 14px; box-shadow: var(--shadow); padding: 0; overflow: hidden; border: 1px solid #263247; font-size: 14px; }
.mock .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #263247; font-weight: 700; }
.mock .bar img { width: 20px; height: 20px; border-radius: 5px; }
.mock .plan { margin: 14px 16px; background: #1e293b; border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mock .plan small { display: block; color: #a78bfa; font-weight: 700; letter-spacing: .06em; font-size: 11px; }
.mock .plan .b { background: #4f8af7; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mock .item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; margin: 0 16px 12px; padding: 10px; border: 1px solid #263247; border-radius: 10px; }
.mock .thumb { height: 56px; border-radius: 6px; background: linear-gradient(135deg, #1d4ed8, #7c3aed); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.mock .tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #1e3a8a; color: #bfdbfe; }
.mock .tag.s { background: #3b0764; color: #e9d5ff; }
.mock .name { font-weight: 600; margin: 3px 0 0; }
.mock .meta { color: #94a3b8; font-size: 12px; }
.mock .dl { margin-top: 6px; display: inline-block; background: #4f8af7; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.mock-caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* 구역 */
section.block { padding: 64px 0; }
section.alt { background: var(--bg2); }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 12px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 12px; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* 요금 */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.price.pro { border: 2px solid var(--pro); }
.price .tier { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.price.pro .tier { color: var(--pro); }
.price .amt { font-size: 40px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; }
.price .amt span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 0; }
.price li { padding: 6px 0 6px 26px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.fine { font-size: 14px; color: var(--muted); margin-top: 20px; max-width: 760px; }

/* 지원하지 않는 것 */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list.yes li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.list.no li::before { content: "✕"; position: absolute; left: 4px; color: var(--no); font-weight: 700; }

/* 자주 묻는 질문 */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; max-width: 820px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; color: var(--muted); }

/* 하단 */
footer.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); }
footer.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0; }
  section.block { padding: 48px 0; }
  .grid, .pricing, .two { grid-template-columns: 1fr; }
  nav.top-links .hide-sm { display: none; }
}
