/* ============================================================
   온톤 — 공개 페이지(랜딩) 스타일

   시안 M01(사례 갤러리)과 M11(요금제)을 근거로, 실제 서비스 진입
   페이지로 확장한 것입니다. 앱과 같은 토큰을 씁니다.
   ============================================================ */

body.site-body { background: var(--surface); font-size: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; }

/* ============================================================
   헤더
   ============================================================ */

.s-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.s-head-in { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.s-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.s-logo .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800; letter-spacing: -.03em;
}
.s-logo .nm { font-size: 17px; font-weight: 800; letter-spacing: -.025em; }

.s-nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); }
.s-nav a:hover { color: var(--brand); }

.s-head-act { display: flex; align-items: center; gap: 8px; flex: none; }

.s-burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 9px; place-items: center; font-size: 17px;
}

/* 모바일 메뉴 */
.s-drawer {
  display: none; border-top: 1px solid var(--line-soft); background: var(--surface);
  padding: 12px 0 18px;
}
.s-drawer.open { display: block; }
.s-drawer a {
  display: block; padding: 12px 0; font-size: 15.5px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

/* ============================================================
   공통 섹션
   ============================================================ */

.s-sec { padding: 88px 0; }
.s-sec.tint { background: var(--surface-2); }
.s-sec.brandtint { background: var(--brand-soft); }

.s-sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; max-width: 720px; }
.s-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
}
.s-sec-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; text-wrap: balance; }
.s-sec-head p { font-size: 16px; color: var(--muted); line-height: 1.75; }

.s-grid { display: grid; gap: 20px; }
.s-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 버튼 (앱의 .d-btn 과 별개로 랜딩용 큰 버튼) */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.s-btn:hover { border-color: var(--brand); color: var(--brand); }
.s-btn.pri { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.s-btn.pri:hover { filter: brightness(1.12); color: var(--brand-ink); }
.s-btn.gh { border-color: transparent; background: transparent; color: var(--ink-2); }
.s-btn.gh:hover { background: var(--surface-2); color: var(--brand); }
.s-btn.lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 11px; }
.s-btn.block { width: 100%; }

/* ============================================================
   히어로
   ============================================================ */

.s-hero { padding: 74px 0 64px; }
.s-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }

.s-hero h1 {
  font-size: 48px; font-weight: 800; letter-spacing: -.035em; line-height: 1.22;
  text-wrap: balance;
}
.s-hero .lead { font-size: 18px; color: var(--muted); line-height: 1.7; margin-top: 18px; }
.s-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.s-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* 히어로 우측 — 산출물 한 벌을 겹쳐 보여줍니다 */
.s-stackview {
  position: relative; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-md);
}
.s-stackview .row { display: flex; gap: 14px; align-items: center; }
.s-out {
  flex: 1; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 9px;
  min-width: 0;
}
.s-out .lb { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.s-out .cv { height: 66px; border-radius: 8px; display: grid; place-items: center; }

/* ============================================================
   사례 갤러리
   ============================================================ */

.s-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.s-chip {
  border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px;
  font-size: 13.5px; color: var(--ink-2); background: var(--surface);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.s-chip:hover { border-color: var(--brand); color: var(--brand); }
.s-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }

.s-case {
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.s-case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.s-case .cv { height: 128px; display: grid; place-items: center; }
.s-case .bd { padding: 14px 15px; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line-soft); }
.s-case .t { font-size: 14.5px; font-weight: 700; }
.s-case .s { font-size: 12.5px; color: var(--muted); }
.s-case .tags { display: flex; flex-wrap: wrap; gap: 5px; }

.s-mark { display: inline-flex; align-items: center; gap: 9px; }
.s-mark .gl {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.04em; flex: none;
}
.s-mark .wd { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.s-mark .wd i { font-style: normal; font-weight: 500; }

/* ============================================================
   과정 · 특징
   ============================================================ */

.s-step {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 11px; height: 100%;
}
.s-step .no {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px; font-weight: 700;
}
.s-step h3 { font-size: 16px; font-weight: 700; }
.s-step p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.s-step .tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; align-self: flex-start;
}

.s-feature { display: flex; gap: 14px; align-items: flex-start; }
.s-feature .ic { font-size: 20px; flex: none; line-height: 1.4; }
.s-feature h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.s-feature p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* 검증 표 */
.s-table { width: 100%; font-size: 14px; }
.s-table th, .s-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.s-table th { font-size: 12.5px; font-family: var(--mono); color: var(--muted); font-weight: 500; letter-spacing: .03em; white-space: nowrap; }
.s-table td { color: var(--ink-2); }
.s-table td.nm { color: var(--ink); font-weight: 600; }
.s-table td.mono { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.s-table tr:last-child td { border-bottom: 0; }
.s-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.s-scroll table { min-width: 620px; }

/* ============================================================
   요금
   ============================================================ */

.s-plan {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
}
.s-plan.best { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.s-plan-rib {
  background: var(--brand); color: var(--brand-ink); padding: 8px 20px;
  font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 10px;
}
.s-plan-bd { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.s-plan .nm { font-size: 17px; font-weight: 800; }
.s-plan .sub { font-size: 13.5px; color: var(--muted); }
.s-plan .price { display: flex; align-items: baseline; gap: 4px; }
.s-plan .price b { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.s-plan .price span { font-size: 14px; color: var(--muted); }
.s-plan ul { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.s-plan ul li.no { color: var(--faint); }
.s-plan .foot { margin-top: auto; padding-top: 6px; }

.s-extra {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 13px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px;
}
.s-extra .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-extra .t { font-size: 14.5px; font-weight: 700; }
.s-extra .price { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.s-extra p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   FAQ · CTA · 푸터
   ============================================================ */

.s-faq { border-top: 1px solid var(--line-soft); }
.s-faq details { border-bottom: 1px solid var(--line-soft); }
.s-faq summary {
  padding: 20px 0; font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none;
}
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: '+'; font-size: 20px; color: var(--muted); font-weight: 400; flex: none; }
.s-faq details[open] summary::after { content: '−'; }
.s-faq .ans { padding: 0 0 22px; font-size: 14.5px; color: var(--muted); line-height: 1.8; max-width: 760px; }

.s-cta {
  background: var(--brand); color: var(--brand-ink);
  border-radius: 20px; padding: 52px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.s-cta h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.s-cta p { font-size: 15px; opacity: .82; margin-top: 10px; line-height: 1.7; }
.s-cta .s-btn { background: var(--surface); border-color: var(--surface); color: var(--brand); }
.s-cta .s-btn:hover { filter: brightness(.95); color: var(--brand); }
.s-cta .s-btn.gh { background: transparent; border-color: color-mix(in srgb, var(--brand-ink) 42%, transparent); color: var(--brand-ink); }

.s-foot { border-top: 1px solid var(--line-soft); padding: 44px 0 60px; }
.s-foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.s-foot .co { font-size: 13px; color: var(--muted); line-height: 1.9; }
.s-foot .co b { color: var(--ink-2); font-weight: 600; }
.s-foot nav { display: flex; gap: 28px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }

/* 배지 */
.s-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
}
.s-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pill.ok { background: var(--ok-bg); color: var(--ok); }
.s-pill.brand { background: var(--brand-soft); color: var(--brand); }
.s-tag {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px;
}

/* ============================================================
   반응형
   ============================================================ */

@media (max-width: 1024px) {
  .s-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .s-hero h1 { font-size: 40px; }
  .s-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-sec { padding: 72px 0; }
}

@media (max-width: 860px) {
  .s-nav { display: none; }
  .s-burger { display: grid; }
  .s-head-act .s-btn.gh { display: none; }
  .s-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.site-body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .s-sec { padding: 56px 0; }
  .s-hero { padding: 48px 0 44px; }
  .s-hero h1 { font-size: 31px; }
  .s-hero .lead { font-size: 16px; }
  .s-hero-cta .s-btn { width: 100%; }
  .s-sec-head h2 { font-size: 26px; }
  .s-grid.c2, .s-grid.c3, .s-grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .s-stackview { padding: 20px; }
  .s-cta { padding: 34px 24px; border-radius: 16px; }
  .s-cta h2 { font-size: 24px; }
  .s-cta .s-btn { width: 100%; }
}
