/* 워드픽 랜딩(설명) 페이지 전용 스타일 */
:root {
  --ink: #14181f;
  --ink-soft: #4a5262;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --line: #e4e8ee;
  --pick: #2b5fe3;
  --pick-deep: #1e46b0;
  --w-teal: #0fa8a0;
  /* 요금제 시안(2026-08-29)의 초록 계열. --w-teal 보다 채도가 낮아
     본문 옆에 놓아도 튀지 않는다 — 카드 강조·체크·가격 부제에 쓴다. */
  --teal: #3e9e97;
  --teal-deep: #2e7d77;
  --teal-tint: #e9f4f2;
  --w-coral: #f2545b;
  --w-amber: #e8930c;
  --w-violet: #7b61d6;
  --w-gray: #9aa3b2;
  /* 브랜드 로고(core/static/core/img/logo.png) 글자색 */
  --brand-word: #42387b;
  --brand-pick: #008acb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
section { scroll-margin-top: 100px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 24px;
  min-height: 64px; display: flex; align-items: center; gap: 32px;
}
/* 우측은 세로 2단 — 위에 인증 링크, 아래에 메뉴 + CTA */
.nav-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nav-row { display: flex; align-items: center; gap: 26px; }
.nav-auth { display: flex; gap: 14px; }
.nav-auth a { text-decoration: none; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.nav-auth a:hover { color: var(--pick); }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--brand-word); }
.brand em { font-style: normal; color: var(--brand-pick); }
.nav-menu { display: flex; gap: 26px; }
.nav-menu a {
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 600;
  padding: 6px 2px;
}
.nav-menu a:hover { color: var(--pick); }
.nav-cta {
  margin-left: 8px;
  background: var(--pick); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700;
  padding: 9px 18px; border-radius: 8px;
}
.nav-cta:hover { background: var(--pick-deep); }

/* ── Hero ── */
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--pick); background: #eef3fe; border: 1px solid #d8e3fc;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; line-height: 1.22;
  letter-spacing: -0.03em; margin-bottom: 20px; word-break: keep-all;
}
h1 .pick-mark {
  color: var(--pick);
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-decoration-color: rgba(43,95,227,.25);
  text-underline-offset: 6px;
}
.hero-lead { font-size: 17px; color: var(--ink-soft); max-width: 46ch; word-break: keep-all; margin-bottom: 12px; }
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-primary {
  background: var(--pick); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(43,95,227,.28);
}
.btn-primary:hover { background: var(--pick-deep); }
.btn-ghost {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 10px; border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--w-gray); }

/* signature: word cloud */
.cloud {
  position: relative; height: 400px;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 100%);
  border-radius: 50%;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
}
.cloud span {
  position: absolute; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Sections ── */
.sec { padding: 88px 0; }
.sec-alt { background: var(--surface); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--pick);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.02em;
  word-break: keep-all;
}
.sec-sub { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

/* 사용법 steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { text-align: center; padding: 0 18px; position: relative; }
.step + .step::before {
  content: "→"; position: absolute; left: -11px; top: 26px;
  font-size: 22px; color: var(--w-gray); font-weight: 400;
}
.step-ic {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 2px 10px rgba(20,24,31,.05);
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); word-break: keep-all; }

/* 기능 cards */
.feat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feat {
  grid-column: span 2;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px;
}
.feat:nth-child(4) { grid-column: 1 / span 3; }
.feat:nth-child(5) { grid-column: 4 / span 3; }
.feat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-size: 22px; margin-bottom: 16px;
}
.feat h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; word-break: keep-all; }
.feat p { font-size: 14.5px; color: var(--ink-soft); word-break: keep-all; }
.feat p + p { margin-top: 8px; }

/* 요금제 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column;
}
.plan.hot { border: 2px solid var(--pick); position: relative; }
.plan.hot::after {
  content: "추천"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--pick); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--w-gray); }
.plan-desc { font-size: 13px; color: var(--w-gray); margin-bottom: 18px; }
/* keep-all: 카드 폭이 1/4 라 혜택 문구가 접히는데, 기본값이면 "한달"이 "한/달"
   로 잘린다. 한국어는 단어 단위로만 끊는다. */
.plan ul { list-style: none; font-size: 14px; color: var(--ink-soft); display: grid; gap: 8px; margin-bottom: 22px; word-break: keep-all; }
.plan ul li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 8px; }
.plan .btn-plan {
  margin-top: auto; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 11px 0; border-radius: 9px; border: 1.5px solid var(--line); color: var(--ink);
}
.plan.hot .btn-plan { background: var(--pick); border-color: var(--pick); color: #fff; }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 14px; }
.cmp th, .cmp td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp thead th { background: var(--surface); font-weight: 800; font-size: 13.5px; }
.cmp thead th:first-child, .cmp thead th:nth-child(2) { text-align: left; }
.cmp .fn { text-align: left; font-weight: 700; color: var(--ink); vertical-align: top; border-right: 1px solid var(--line); }
.cmp .sub { text-align: left; font-weight: 500; color: var(--ink-soft); }
.cmp .grp td {
  background: #fafbfd; font-weight: 800; color: var(--ink); font-size: 13px;
  letter-spacing: .04em; text-align: left;
}
.cmp .ok { color: var(--pick); font-weight: 800; }
.cmp .no { color: #cfd5de; font-weight: 700; }
.cmp-note { margin-top: 14px; font-size: 13px; color: var(--w-gray); text-align: right; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 24px;
}
details[open] { border-color: var(--pick); }
summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 16px;
  padding: 20px 0; display: flex; gap: 12px; align-items: baseline; word-break: keep-all;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q."; color: var(--pick); font-weight: 800; flex-shrink: 0; }
details p {
  padding: 0 0 22px 30px; color: var(--ink-soft); font-size: 15px; word-break: keep-all;
}

/* 활용 사례 */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.sample {
  border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--paper);
}
.sample-thumb {
  /* 카드 비율은 그림3(저작권법, 600:420)을 기준으로 고정한다 — 그림3은
     가로를 꽉 채우고, 좁고 세로로 긴 그림1·2(지도·엄지척)는 같은 높이 안에서
     object-fit: contain 으로 줄어들어 보인다. 하단에는 그림3 원본에 baked-in
     된 상단 여백(약 8px)만큼 padding-bottom 을 더해 시각적으로 균형을 맞춘다.
  */
  width: 100%; aspect-ratio: 600 / 420; padding-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: #f7f8fa;
}
.sample-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sample-cap { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--ink-soft); border-top: 1px solid var(--line); }
.samples-cta { text-align: center; }

/* IP(특허·상표) */
.ip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 640px; margin: 0 auto; }
.ip-card {
  border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--paper);
  text-align: center;
}
.ip-card img {
  display: block; width: 100%; height: 260px; object-fit: contain;
  padding: 20px; box-sizing: border-box; background: #f7f8fa;
}
.ip-cap { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* Footer */

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cloud { height: 320px; max-width: 340px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .step + .step::before { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat, .feat:nth-child(4), .feat:nth-child(5) { grid-column: auto; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .samples { grid-template-columns: 1fr; }
  .ip-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(43,95,227,.5); outline-offset: 2px; border-radius: 6px;
}

/* ── 카드 추가 요소 (#188 시안) ────────────────────────────────
 * .plan 본체는 landing.css 가 갖는다. 시안이 더한 배지·가격 부제·
 * fineprint 만 여기서 얹는다. landing.css 의 .plan.hot::after 가 이미
 * 추천 표시를 그리므로, 배지가 있는 카드에서는 그것을 숨겨 겹치지 않게 한다.
 */
.plan { position: relative; }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--pick); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 4px 13px; border-radius: 20px; white-space: nowrap;
}
.plan.hot:has(.plan-badge)::after { display: none; }
.plan-price-sub {
  font-size: 12.5px; font-weight: 700; color: var(--w-teal);
  margin: -2px 0 2px;
}
.plan-fineprint {
  font-size: 11.5px; color: var(--w-gray); line-height: 1.55;
  margin: 10px 0 0;
}

/* ── 카드 치수 (#188 시안) ─────────────────────────────────────
 * 시안의 카드 크기·간격. 랜딩과 요금제 페이지가 같은 카드를 쓰므로 여기
 * 한 곳에 둔다. 결제 페이지(checkout.html)도 `.plan-name`·`.plan-price` 를
 * 쓰지만 billing.css 만 로드하므로 닿지 않는다.
 */
.plans {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  /* 시안은 align-items:start + min-height:492px 로 높이를 맞췄다. 그 값은
     시안 카드 폭(271px)에 맞춰 손으로 고른 것이라, 폭이 다르거나 문구가
     바뀌면 어긋난다. 그리드 기본값(stretch)에 맡기면 한 줄의 카드가 항상
     가장 높은 카드에 맞춰지므로 같은 결과를 값 없이 얻는다. */
  margin-bottom: 40px;
}
.plan {
  border-radius: 14px;
  padding: 26px 22px 24px;
  /* 문구가 짧아져도 카드가 납작해지지 않게 하는 하한선(시안 값). */
  min-height: 492px;
}
/* 강조 카드는 테두리가 1px 두꺼우므로 안쪽 여백에서 그만큼 뺀다 —
   그러지 않으면 이 카드만 내용이 1px 씩 밀린다. */
.plan.hot {
  padding: 25px 21px 23px;
  box-shadow: 0 6px 28px rgba(43, 95, 227, 0.13);
}
/* 초록 강조 카드(시안의 teal-edge). 어느 카드가 이걸 쓰는지는 화면 위치가
   아니라 카드 데이터(plan.accent)가 정한다 — 패널 전체를 셀렉터로 잡으면
   같은 패널의 다른 강조 카드까지 물든다. */
.plan.hot.accent-teal {
  border-color: var(--teal);
  box-shadow: 0 6px 28px rgba(62, 158, 151, 0.16);
}
.plan.hot.accent-teal .plan-badge { background: var(--teal-deep); }
.plan.hot.accent-teal .btn-plan {
  background: var(--teal-deep); border-color: var(--teal-deep);
}

.plan-name { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.plan-price {
  font-size: 31px; line-height: 1.15; letter-spacing: -0.045em;
  color: var(--ink); margin: 0;
}
.plan-price small { font-size: 15px; font-weight: 600; }
/* 아직 팔지 않는 가격은 숫자가 아니라 안내 문구다 — 값처럼 크게 보이면
   금액으로 읽힌다. */
.plan-price.is-pending {
  font-size: 25px; color: var(--w-gray); letter-spacing: -0.035em;
}
.plan-price-sub {
  font-size: 12px; font-weight: 600; color: var(--teal-deep);
  margin: 5px 0 0;
  /* 부제가 없는 카드도 같은 높이를 차지해야 아래 내용이 나란히 시작한다. */
  min-height: 17px;
}
.plan-desc {
  font-size: 12.5px; color: var(--w-gray); margin: 9px 0 0;
}

.plan ul {
  display: block;
  font-size: 13px;
  margin: 20px 0 0;
  padding: 19px 0 0;
  border-top: 1px solid var(--line);
}
.plan ul li {
  display: flex; gap: 8px; line-height: 1.55; margin-bottom: 11px;
}
.plan ul li::before {
  color: var(--teal); font-size: 12px; flex: none; margin: 1px 0 0;
}
.plan .btn-plan {
  padding: 12px 14px; font-size: 14px; border-radius: 9px;
}
.plan-fineprint { margin-top: 11px; }
.plan-badge { top: -11px; font-size: 11px; }

/* 시안 breakpoint. 2열로 접히면 카드 높이를 내용에 맡긴다 — 폭이 넓어져
   혜택 줄이 덜 접히므로 492px 를 유지하면 아래가 빈다. */
@media (max-width: 1040px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan { min-height: auto; }
}
@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
}

/* ── 과금 방식 전환 (#199) ──
 * 랜딩의 요금제 섹션과 요금제 페이지가 함께 쓴다. 랜딩은 landing.css 만
 * 로드하는 독립 문서라 pricing.css 에 두면 랜딩에서 스타일이 빠진다.
 */
.billing-switch {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin: 26px 0 32px;
}
.seg {
  display: inline-flex; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px;
}
.seg button {
  border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--w-gray); padding: 9px 22px; border-radius: 8px; cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.seg button[aria-pressed="true"] {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 24, 31, 0.12);
}
.seg button:focus-visible { outline: 2px solid var(--pick); outline-offset: 2px; }
.seg-note { font-size: 13px; color: var(--w-gray); margin: 0; }

.is-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .seg button { transition: none; }
}
