/* 로그인 전 첫 화면. style.css 는 앱 화면(720px 한 단)용이라, 여기서 body 폭과
   button·header·h1 기본값을 되돌린다. body.is-landing 일 때만 적용된다. */

body.is-landing {
  max-width: none; margin: 0; padding: 0;
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #0f172a; background: #fff; -webkit-font-smoothing: antialiased;
}
.lp { --ink: #0f172a; --sub: #475569; --line: #e2e8f0; --brand: #4f46e5; --brand2: #7c3aed;
      --soft: #f5f7ff; scroll-behavior: smooth; }
.lp * { box-sizing: border-box; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp h1, .lp h2, .lp h3 { margin: 0; letter-spacing: -0.02em; }
.lp a { color: inherit; }

/* 버튼 — style.css 의 회색 button 을 덮는다 */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  box-shadow: 0 6px 20px -6px rgba(79, 70, 229, .55); }
.lp-btn-primary:hover { box-shadow: 0 10px 26px -6px rgba(79, 70, 229, .6); }
.lp-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.lp-btn-ghost:hover { border-color: #cbd5e1; }
.lp-btn-light { background: #fff; color: var(--brand); }
.lp-btn-block { width: 100%; }

/* 상단 바 — 모든 화면이 같이 쓴다 (#topbar) */
#topbar { font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--ink); }
body:not(.is-landing) #topbar .lp-only { display: none; }
.lp-logo { text-decoration: none; color: var(--ink); }
.lp-who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lp-who #org { color: var(--sub); margin-right: 4px; }
.lp-who .lp-btn { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
/* 좁은 화면에서 로그인한 뒤: 버튼 셋이 들어갈 자리를 위해 로고 글자와 조직 이름을 접는다. */
@media (max-width: 600px) {
  #topbar:has(#who:not([hidden])) .lp-logo-text, .lp-who #org { display: none; }
  .lp-who .lp-btn { padding: 7px 10px; }
}
.lp-nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.lp-logo-mark { display: block; width: 38px; height: 38px; }
.lp-logo-text { font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.lp-nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--sub); }
.lp-nav-links a { text-decoration: none; }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-links .lp-btn { padding: 9px 16px; }

/* 첫 화면 */
.lp-hero { display: block; border: 0; padding: 88px 0 96px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(124, 58, 237, .14), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, rgba(79, 70, 229, .12), transparent 70%); }
.lp-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--brand); background: #eef2ff; border: 1px solid #e0e7ff; }
.lp-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.15; font-weight: 800; margin: 20px 0 18px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 18px; line-height: 1.7; color: var(--sub); margin: 0 0 30px; max-width: 34em; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* 첫 화면 오른쪽 — 파일이 전표가 되는 모습 */
.lp-preview { position: relative; display: grid; gap: 14px; }
.lp-file, .lp-sheet { background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .25); }
.lp-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 78%; }
.lp-file b { display: block; font-size: 14px; }
.lp-file small { color: #94a3b8; font-size: 12px; }
.lp-file-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1; color: #fff; background: #16a34a; }
.lp-arrow { display: flex; align-items: center; gap: 10px; padding-left: 26px; font-size: 12px;
  font-weight: 600; color: var(--brand); }
.lp-arrow span { width: 2px; height: 26px; background: linear-gradient(var(--brand), var(--brand2)); border-radius: 2px; }
.lp-sheet { padding: 16px; margin-left: 14%; }
.lp-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.lp-ok { font-size: 12px; font-weight: 600; color: #15803d; background: #dcfce7; padding: 3px 8px; border-radius: 999px; }
.lp-row { display: grid; grid-template-columns: 52px 1fr 92px; gap: 8px; padding: 9px 4px;
  font-size: 13px; border-top: 1px solid #f1f5f9; }
.lp-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.lp-row.h { color: #94a3b8; font-size: 12px; border-top: 0; }
.lp-sheet-foot { margin-top: 8px; font-size: 12px; color: #94a3b8; }

/* 공통 구획 */
.lp-section { padding: 96px 0; }
.lp-eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--brand); text-align: center; }
.lp-section h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; text-align: center; font-weight: 800; }

/* 기능 세 가지 */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.lp-card { padding: 30px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: box-shadow .2s, transform .2s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .3); }
.lp-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #eef2ff; margin-bottom: 18px; }
.lp-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-card h3 { font-size: 19px; margin-bottom: 10px; }
.lp-card p { margin: 0; color: var(--sub); line-height: 1.7; font-size: 15px; }

/* 요금 */
.lp-pricing-bg { background: var(--soft); }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.lp-plan h3 { font-size: 18px; }
.lp-plan-who { margin: 6px 0 22px; color: var(--sub); font-size: 14px; }
.lp-price { margin: 0 0 24px; font-size: 16px; color: var(--sub); }
.lp-price b { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-right: 2px; }
.lp-price span { margin-left: 4px; font-size: 14px; }
.lp-price-ask { font-size: 32px; font-weight: 800; color: var(--ink); line-height: 48px; }
.lp-plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.lp-plan li { position: relative; padding-left: 26px; font-size: 15px; color: #334155; }
.lp-plan li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #eef2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.lp-plan-pop { border: 2px solid var(--brand); box-shadow: 0 24px 60px -28px rgba(79, 70, 229, .55); transform: translateY(-8px); }
.lp-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); }

/* 마지막 권유 + 바닥 */
/* 위 요금 구획은 배경색이 있어서, 위 여백이 0 이면 배너가 그 색에 바로 붙는다 (Todd, 2026-11-15). */
.lp-final { padding: 56px 0 96px; }
.lp-final-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.lp-final h2 { text-align: left; color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.lp-foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: #94a3b8; }
.lp-foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-foot-biz { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; line-height: 1.6; }
.lp-foot-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.lp-foot-links a { color: #64748b; font-weight: 600; }

.lp-plan-billing { margin: 12px auto 0; max-width: 640px; text-align: center; font-size: 15px; color: var(--sub); }

/* 약관·방침 페이지 (refund.html, terms.html, privacy.html) */
.lp-doc { max-width: 760px; padding: 56px 24px 72px; line-height: 1.75; color: var(--sub); }
.lp-doc h1 { font-size: 28px; color: var(--ink); margin-bottom: 8px; }
.lp-doc h2 { font-size: 17px; color: var(--ink); margin: 32px 0 8px; }
.lp-doc ol, .lp-doc ul { padding-left: 20px; margin: 0; }
.lp-doc li { margin: 4px 0; }
.lp-doc .lp-doc-date { font-size: 14px; color: #94a3b8; margin: 0 0 24px; }
.lp-doc .lp-doc-back { display: inline-block; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
.lp-doc h3 { font-size: 15px; color: var(--ink); margin: 20px 0 6px; }
.lp-doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
.lp-doc th, .lp-doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.lp-doc th { background: #f8fafc; color: var(--ink); }
.lp-doc-links { margin-top: 40px; font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.pay-form { display: grid; gap: 12px; margin-top: 20px; }
.pay-form select, .pay-form input { padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.pay-notice { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 8px; padding: 12px 14px; }
.pay-notice p { margin: 0 0 8px; }
.pay-notice p:last-child { margin: 0; }
#site-nav .lp-nav-links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
#site-nav .lp-nav-in { height: auto; min-height: 64px; padding: 8px 0; }

/* 좁은 화면 */
@media (max-width: 880px) {
  .lp-hero { padding: 56px 0 64px; }
  .lp-hero-in, .lp-features, .lp-plans { grid-template-columns: 1fr; }
  .lp-preview { max-width: 460px; }
  .lp-plan-pop { transform: none; }
  .lp-nav-links a { display: none; }
  #site-nav .lp-nav-links a { display: inline; }
  .lp-section { padding: 72px 0; }
  .lp-final-in { padding: 32px 28px; }
}
