/* ─────────────────────────────────────────────────────────────────────────────
   § 홍보 사이트 안내 쪽 공용 틀 — Pricing · Terms · Refunds · Privacy (2026-11-02 사용자 「폭이 표준 UI와 안 맞다 · 폰트도 표준과 같도록」 · 「진행하라」)
   표준 = 메인(site/index.html)과 docs/design/EyeLearn_Design_Guide.md — 색 토큰 · Inter 400/600/700 · 크기표(3절) · 1200/32/20(4절) · 단추(5절).
   폭은 글이든 표든 1200px 기본(사용자 「약관이든 뭐든 1200px 기본으로 하라」). 문구는 각 쪽 HTML 에서 — 이 파일은 꼴만.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --navy: #07015a; --purple: #6012f3; --purple-hover: #4d0fcc; --purple-pressed: #3e0aa8; --purple-soft: #f3eeff;
  --bg: #ffffff; --surface: #f7f8fc; --ink: #18213a; --muted: #56627a; --line: #e4e7ef;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.625 var(--font); overflow-x: hidden; }
a { color: var(--purple); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* 머리 — 메인과 같은 꼴(로고 40 + Beta · Sign in · Try free). 시험 칩은 메인 내용을 바꾸는 단추라 두지 않는다 */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand-row { display: inline-flex; align-items: center; gap: 8px; }
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }
.beta { display: inline-block; padding: 1px 8px; border: 1.5px solid var(--purple); border-radius: 999px; color: var(--purple); background: #fff;
  font: 600 12px/1.5 var(--font); letter-spacing: .04em; white-space: nowrap; }
.top-act { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.sign-link { color: var(--purple); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 12px;
  background: var(--purple); color: #fff; font: 600 16px/24px var(--font); text-decoration: none; box-shadow: 0 8px 22px rgba(96, 18, 243, .22); }
.cta:hover { background: var(--purple-hover); }
.cta:active { background: var(--purple-pressed); }
.cta.cta-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; box-shadow: none; }

/* 본문 — 제목 왼끝이 로고와 같은 선(1200 틀 안) */
main.wrap { padding-top: 40px; padding-bottom: 56px; }   /* .wrap 의 옆 여백은 두고 위아래만 */
h1, h2, h3 { color: var(--navy); font-family: var(--font); }
h1 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 40px 0 10px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 24px; margin: 0 0 12px; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); margin: 0 0 28px; }
.updated { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.note { background: var(--surface); border-radius: 16px; padding: 24px; margin: 0 0 12px; }
.note > :last-child { margin-bottom: 0; }

/* Pricing — 요금 카드(앱 Upgrade 창과 같은 꼴: 3개월에 Best value · 보라 테두리) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #fff; }
.plan.is-best { border: 2px solid var(--purple); padding: 23px; }
.plan .badge { position: absolute; top: -12px; left: 22px; padding: 2px 10px; border-radius: 999px; background: var(--purple); color: #fff;
  font: 600 12px/18px var(--font); letter-spacing: .04em; }
.plan h2 { font-size: 24px; line-height: 32px; margin: 0 0 6px; }
.plan .price { margin: 0 0 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.plan .price b { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.01em; }
.plan .price span { font-size: 16px; color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0; }
.plan li { margin-bottom: 8px; }

/* 가격표 — 금액은 오른쪽 · 고정폭 숫자, 머리 줄은 옅은 바탕 */
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; table-layout: fixed; }
th:first-child { width: 50%; }   /* 표 둘(구독 · 인도)의 금액 칸이 같은 자리에 서게 */
th, td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface); color: var(--navy); font-weight: 600; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { white-space: nowrap; }
td.num { color: var(--navy); font-weight: 600; }
.foot-small { font-size: 14px; color: var(--muted); }

/* 꼬리 — 메인과 같은 꼴 */
.foot { padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.foot img { height: 28px; width: auto; display: block; }
.foot a:not(.cta) { color: inherit; }
.foot .cta { margin-left: auto; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .top .wrap { height: 56px; gap: 12px; }
  .brand img { height: 30px; }
  .top-act .cta { display: none; }   /* 폰 — 머리가 좁아 로고와 겹친다(메인과 같음). 꼬리에 같은 단추가 있다 */
  main.wrap { padding-top: 28px; padding-bottom: 40px; }
  h1 { font-size: 28px; line-height: 36px; }
  h2, .plan h2 { font-size: 20px; line-height: 28px; margin-top: 32px; }
  .plan h2 { margin-top: 0; }
  th, td { padding: 12px 10px; }
  th:first-child { width: 46%; }
  .foot .cta { margin-left: 0; }
}
