/* ============================================================
   Formula X - Public Landing (ADR 0168 1단계)
   브랜드 중립: [data-lp-root]·--lp-* 만 쓴다. 브랜드 토큰 참조 금지.
   모바일 우선, PC 는 가운데 480px 기둥.
   이 파일은 메인 셸·데모에도 들어가므로 껍데기 규칙은
   html[data-lp-active] 로 한정한다(랜딩 부트가 /l/ 에서만 단다).
   ============================================================ */

/* 껍데기(html/body)와 랜딩 배경 통일. [data-lp-root]는 본문 기둥에만
   깔려 body 기본 여백·흰 배경이 바깥 테두리로 남는다. 값은 --lp-bg 와
   같은 값(다크 #0B0B10·라이트 #FFFFFF)으로 맞춘다. */
html[data-lp-active] {
  background: #0B0B10;
}

html[data-lp-active] body {
  margin: 0;
  padding: 0;
  background: #0B0B10;
}

html[data-lp-active="light"] {
  background: #FFFFFF;
}

html[data-lp-active="light"] body {
  background: #FFFFFF;
}

[data-lp-root] {
  /* 부트 전 폴백. 중립 진회색(심사 지적 7) — 진해 보라는 랜딩 설정값으로만. */
  --lp-accent: #404040;
  --lp-accent-dark: #262626;
  --lp-accent-soft: #D4D4D4;
  --lp-bg: #0B0B10;
  --lp-surface: #15151D;
  --lp-fg: #F4F4F6;
  --lp-muted: #A7A7B3;
  --lp-line: #26262F;
  --lp-card: #15151D;
  --lp-on-accent: #FFFFFF;
  display: block;
  background: var(--lp-bg);
  color: var(--lp-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

[data-lp-root][data-lp-mode="light"] {
  --lp-bg: #FFFFFF;
  --lp-surface: #F4F4F6;
  --lp-fg: #17171C;
  --lp-muted: #5C5C66;
  --lp-line: #E4E4E9;
  --lp-card: #FFFFFF;
}

[data-lp-root][data-lp-on-accent="dark"] {
  --lp-on-accent: #111111;
}

/* 한국어 줄바꿈: 낱말 중간에서 끊지 않는다(보노 2026-12-03 «담았어/요» 지적).
   긴 영문·주소는 넘칠 때만 끊는다. 제목은 줄 길이를 고르게, 본문은 마지막 줄 외톨이 글자를 줄인다. */
[data-lp-root] {
  word-break: keep-all;
  overflow-wrap: break-word;
}

[data-lp-root] h1, [data-lp-root] h2, [data-lp-root] h3, [data-lp-root] .lp-title {
  text-wrap: balance;
}

[data-lp-root] p, [data-lp-root] li, [data-lp-root] figcaption {
  text-wrap: pretty;
}

[data-lp-root] *, [data-lp-root] *::before, [data-lp-root] *::after {
  box-sizing: border-box;
}

[data-lp-root] img {
  max-width: 100%;
}

.lp-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 96px;
}

.lp-section {
  padding: 36px 20px;
  scroll-margin-top: 76px;
}

.lp-bg-dark {
  background: #101016;
  color: #F4F4F6;
}

.lp-bg-light {
  background: #FFFFFF;
  color: #17171C;
}

[data-lp-mode="light"] .lp-bg-dark {
  background: #101016;
  color: #F4F4F6;
}

/* ── 타이포 ── */

.lp-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lp-accent-soft);
  margin: 0 0 10px;
}

[data-lp-mode="light"] .lp-eyebrow {
  color: var(--lp-accent-dark);
}

.lp-title {
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.lp-body p {
  margin: 0 0 10px;
}

.lp-list {
  margin: 0 0 10px;
  padding-left: 20px;
}

.lp-list li {
  margin-bottom: 6px;
}

.lp-footnote {
  font-size: 13px;
  color: var(--lp-muted);
  margin: 12px 0 0;
}

/* ── 버튼 ── */

.lp-btn {
  display: inline-block;
  background: var(--lp-accent);
  color: var(--lp-on-accent);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 20px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  line-height: 1.4;
}

.lp-btn:active {
  background: var(--lp-accent-dark);
}

.lp-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.lp-ghost {
  background: transparent;
  color: var(--lp-fg);
  border-color: var(--lp-line);
}

/* ── 공지·히어로 ── */

.lp-notice_bar {
  padding: 10px 20px;
  background: var(--lp-accent-dark);
  color: #fff;
  text-align: center;
}

.lp-notice-text, .lp-notice-link {
  font-size: 14px;
  font-weight: 700;
}

.lp-notice-link {
  color: #fff;
  text-decoration: underline;
}

.lp-hero {
  padding-top: 0;
}

.lp-hero-media {
  margin: 0 -20px 20px;
  min-height: 200px;
  background: var(--lp-surface);
}

.lp-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* 사진 히어로: 문구를 사진 위에 얹는다. 사진이 첫 화면을 다 차지하지
   않게 본문이 사진 아래쪽에 앉고, 제목·CTA 가 첫 화면에 보인다.
   오버레이 글자는 흰색 고정(모드 무관). 사진 전체에 최소 0.6 검정
   스크림을 깔아 사진이 흰색이어도 흰 글자 대비 5.7:1(AA)을 보장한다. */
.lp-hero-overlay {
  position: relative;
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: 440px;
  overflow: hidden;
}

.lp-hero-overlay .lp-hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  min-height: 0;
}

.lp-hero-overlay .lp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-hero-overlay .lp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.6) 100%);
}

.lp-hero-overlay .lp-hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding: 96px 20px 28px;
  color: #FFFFFF;
}

.lp-hero-overlay .lp-eyebrow {
  color: #FFFFFF;
}

.lp-hero-overlay .lp-hero-sub {
  color: rgba(255, 255, 255, 0.88);
}

.lp-hero-overlay .lp-hero-foot {
  color: rgba(255, 255, 255, 0.85);
}

.lp-hero-overlay .lp-ghost {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.lp-hero-title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.lp-hero-sub {
  font-size: 17px;
  color: var(--lp-muted);
  margin: 0 0 18px;
}

.lp-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.lp-hero-ctas .lp-btn {
  width: 100%;
}

.lp-hero-foot {
  font-size: 13px;
  color: var(--lp-muted);
  margin: 0;
}

/* ── 체크·카드·단계·갤러리 ── */

.lp-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  padding: 12px 14px;
}

.lp-check-mark {
  color: var(--lp-accent-soft);
  font-weight: 800;
}

[data-lp-mode="light"] .lp-check-mark {
  color: var(--lp-accent-dark);
}

.lp-cards:not(.lp-section) {
  display: grid;
  gap: 12px;
}

.lp-cols-1 { grid-template-columns: 1fr; }
.lp-cols-2 { grid-template-columns: 1fr 1fr; }
.lp-cols-3 { grid-template-columns: 1fr; }

@media (min-width: 480px) {
  .lp-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.lp-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
}

.lp-card-media {
  margin: -16px -16px 12px;
}

.lp-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.lp-card-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.lp-card-body {
  font-size: 14px;
  color: var(--lp-muted);
}

.lp-steps:not(.lp-section) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: lp-step;
}

.lp-steps li {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 14px 16px;
}

.lp-step-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lp-accent-soft);
  margin-bottom: 4px;
}

[data-lp-mode="light"] .lp-step-label {
  color: var(--lp-accent-dark);
}

.lp-step-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.lp-step-body {
  font-size: 14px;
  color: var(--lp-muted);
}

.lp-gallery:not(.lp-section) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-gallery.lp-swipe {
  flex-direction: row;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  margin: 0 -20px;
  padding: 0 20px 8px;
}

/* 넘겨 보기 사진은 한 비율로 맞춘다(세로 사진이 줄 높이를 키워 아래가 비는 것 방지). */
.lp-gallery.lp-swipe img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lp-gallery figure {
  margin: 0;
}

.lp-gallery.lp-swipe figure {
  flex: 0 0 82%;
  scroll-snap-align: start;
}

.lp-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.lp-gallery figcaption {
  font-size: 13px;
  color: var(--lp-muted);
  margin-top: 6px;
}

/* ── 혜택·가격·FAQ·위치 ── */

.lp-offer {
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
}

.lp-offer-items {
  margin: 0 0 14px;
  padding-left: 20px;
}

.lp-offer-items li {
  margin-bottom: 6px;
}

.lp-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
}

.lp-price del {
  color: var(--lp-muted);
}

.lp-price strong {
  font-size: 28px;
  color: var(--lp-accent-soft);
}

[data-lp-mode="light"] .lp-price strong {
  color: var(--lp-accent-dark);
}

.lp-offer-note {
  font-size: 14px;
  color: var(--lp-muted);
  margin: 0;
}

.lp-closed {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.lp-table-wrap {
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lp-table th, .lp-table td {
  border: 1px solid var(--lp-line);
  padding: 10px 8px;
  text-align: center;
}

.lp-table thead th {
  background: var(--lp-surface);
}

.lp-table tbody th {
  text-align: left;
  background: var(--lp-card);
}

.lp-row-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--lp-muted);
}

.lp-hl {
  background: rgba(124, 58, 237, 0.12);
}

[data-lp-mode="light"] .lp-hl {
  background: rgba(124, 58, 237, 0.08);
}

/* 강조 열(예: 사전등록가)은 한눈에 띄게: 머리칸은 강조색 채움, 값은 굵게·강조색·조금 크게,
   열 테두리도 강조색(보노 2026-12-03 «더 눈에 띄게»). color-mix 미지원 브라우저는 위 rgba 유지. */
.lp-table thead th.lp-hl {
  background: var(--lp-accent);
  color: var(--lp-on-accent);
  font-weight: 800;
  border-color: var(--lp-accent);
}

.lp-table td.lp-hl {
  background: color-mix(in srgb, var(--lp-accent) 24%, transparent);
  color: var(--lp-accent-soft);
  font-weight: 800;
  font-size: 15px;
  border-left-color: var(--lp-accent);
  border-right-color: var(--lp-accent);
}

.lp-table tbody tr:last-child td.lp-hl {
  border-bottom-color: var(--lp-accent);
}

[data-lp-mode="light"] .lp-table td.lp-hl {
  background: color-mix(in srgb, var(--lp-accent) 12%, transparent);
  color: var(--lp-accent-dark);
}

/* 취소선 열(예: 정상가): 값 셀만 취소선·흐리게. 머리칸은 그대로. */
.lp-table td.lp-strike {
  text-decoration: line-through;
  color: var(--lp-muted);
}

.lp-notes {
  font-size: 13px;
  color: var(--lp-muted);
  margin: 12px 0 0;
  padding-left: 18px;
}

.lp-faq details {
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--lp-card);
}

.lp-faq summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
}

.lp-faq details div {
  padding: 0 16px 14px;
  color: var(--lp-muted);
  font-size: 15px;
}

.lp-address {
  font-weight: 700;
  margin: 0 0 8px;
}

.lp-directions, .lp-nearby {
  font-size: 14px;
  color: var(--lp-muted);
  margin: 0 0 8px;
}

.lp-map-btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.lp-map-btns .lp-btn {
  flex: 1;
}

/* ── 보문 포맷 변형 (ADR 0168 4단계, 전부 선택값) ── */

/* 큰 문구(statement) — Feel the Shake 형 강조 구역. */
.lp-statement .lp-title {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lp-statement .lp-body {
  font-size: 17px;
}

/* 글 위 사진(브랜드 스토리형). */
.lp-text-media {
  margin: 0 -20px 20px;
}

.lp-text-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* 칩형 카드(특징·지점 띠). 열 수와 무관하게 2열로 빽빽히 둔다. */
.lp-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lp-chip {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 12px 14px;
  overflow: hidden;
}

.lp-chip .lp-card-media {
  margin: -12px -14px 10px;
}

.lp-chip .lp-card-title {
  font-size: 15px;
  margin-bottom: 2px;
}

.lp-chip .lp-card-body {
  font-size: 13px;
}

/* 카드 작은 라벨(from Yoga 형). */
.lp-card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lp-accent-soft);
  margin-bottom: 4px;
}

[data-lp-mode="light"] .lp-card-kicker {
  color: var(--lp-accent-dark);
}

/* 큰 숫자 띠(숫자가 증명합니다·보문 brand-facts 형). 카드 한 장 위에
   카드 수대로 1~3열, 375px 에서도 3열 유지. 숫자는 강조색(다크
   accent_soft·라이트 accent_dark — 가격·체크와 같은 규칙), 앞·단위는
   숫자 절반 크기·본문색으로 같은 줄에 붙인다(nowrap). 숫자 줄 높이
   고정으로 설명 시작선을 맞추고 칸 사이 얇은 선을 둔다. 한글 keep-all·
   긴 영문 줄바꿈은 루트 상속, 그리드 칸 최소폭 0 으로 375px 넘침 방지.
   대비(카드 바탕): 기본 토큰 다크 12.3·라이트 15.1, 진해(#C4B5FD·
   #5B21B6) 다크 9.8·라이트 9.0 — 전부 AA(런타임 테스트 정적 확인). */
.lp-stats {
  display: grid;
  gap: 0;
  text-align: center;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 18px 4px;
}

.lp-stats-1 { grid-template-columns: 1fr; }
.lp-stats-2 { grid-template-columns: 1fr 1fr; }
.lp-stats-3 { grid-template-columns: 1fr 1fr 1fr; }

.lp-stat {
  min-width: 0;
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-stat + .lp-stat {
  border-left: 1px solid var(--lp-line);
}

.lp-stat-num {
  /* 375px 에서 «1,000명» 이 칸(약 1/3 폭) 안에 들도록(보노 2026-12-03 «명» 걸침 지적). */
  font-size: clamp(24px, 7.4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  min-height: 1.2em;
  letter-spacing: -0.03em;
  color: var(--lp-fg);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lp-stat-val {
  color: var(--lp-accent-soft);
}

[data-lp-mode="light"] .lp-stat-val {
  color: var(--lp-accent-dark);
}

.lp-stat-pre,
.lp-stat-unit {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--lp-muted);
}

.lp-stat-pre { margin-right: 0.15em; }
.lp-stat-unit { margin-left: 0.12em; }

.lp-stat-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-muted);
  /* 칸마다 설명 줄 수가 달라도 시작선·끝선이 맞게 두 줄 높이를 잡고 가운데 정렬(보노 지적). */
  min-height: 3em;
  text-wrap: balance;
}

/* 체크 항목 굵게. */
.lp-checks strong {
  color: var(--lp-accent-soft);
}

[data-lp-mode="light"] .lp-checks strong {
  color: var(--lp-accent-dark);
}

/* 혜택 버튼(히어로와 같은 자리 규칙: 첫째 채움·둘째 테두리). */
.lp-offer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 4px;
}

.lp-offer-ctas .lp-btn {
  width: 100%;
}

/* 지도 미리보기 사진. */
.lp-map-preview {
  margin: 0 0 14px;
}

.lp-map-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--lp-line);
}

/* ── 등장 모션 (슬롯 롤 + 스크롤 텍스트, 항상 켜짐) ──
   초기 숨김은 JS 가 붙인 .lp-motion 아래에서만 둔다. JS 실패·
   미지원·reduced-motion 이면 클래스가 없어 글자가 그대로 보인다.
   전부 transform/opacity 만이라 레이아웃 이동이 없다. */

/* 스크린리더용 최종 숫자(릴은 aria-hidden). */
.lp-vh {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 슬롯 릴: 한 자리 폭·한 줄 높이 창에 0~9 띠. JS 가 멈춤 위치·
   자리별 길이를 정하고 transition 으로만 돈다(시작·지연만 JS).
   칸 높이 1.25em 은 런타임 MOTION_REEL_CELL 과 같은 값이다. */
.lp-reel {
  display: inline-block;
  height: 1.25em;
  line-height: 1.25;
  overflow: hidden;
  vertical-align: top;
}

.lp-strip {
  display: block;
  will-change: transform;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.15, 0.85, 0.25, 1);
}

.lp-strip > span {
  display: block;
  height: 1.25em;
  line-height: 1.25;
}

/* 멈춤 튕김(전 자리 정지 뒤 1회). */
.lp-stat-num.lp-landed {
  animation: lp-land 200ms ease-out 1;
}

@keyframes lp-land {
  0% { transform: none; }
  40% { transform: translateY(-4px); }
  100% { transform: none; }
}

/* 섹션 제목 줄 단위 등장(줄마다 100ms 지연은 JS 인라인). */
.lp-motion .lp-title .lp-line-in {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.lp-motion .lp-in .lp-title .lp-line-in {
  opacity: 1;
  transform: none;
}

/* 히어로 제목은 지연 없이 짧게(240ms, LCP 보호). */
.lp-motion .lp-hero-title {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.lp-motion .lp-in .lp-hero-title {
  opacity: 1;
  transform: none;
}

/* 본문 굵게 형광펜(왼→오, 섹션 등장 뒤 0.3s). */
.lp-motion .lp-body strong,
.lp-motion .lp-checks strong {
  background-image: linear-gradient(to top, color-mix(in srgb, var(--lp-accent-soft) 55%, transparent) 42%, transparent 42%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.6s ease 0.3s;
}

.lp-motion .lp-in .lp-body strong,
.lp-motion .lp-in .lp-checks strong {
  background-size: 100% 100%;
}

.lp-motion[data-lp-mode="light"] .lp-body strong,
.lp-motion[data-lp-mode="light"] .lp-checks strong {
  background-image: linear-gradient(to top, color-mix(in srgb, var(--lp-accent-dark) 28%, transparent) 42%, transparent 42%);
}

/* statement 글자 흔들림 등장(1회, 글자별 지연은 JS 인라인). */
.lp-motion .lp-statement .lp-ch {
  display: inline-block;
  opacity: 0;
}

.lp-motion .lp-statement.lp-in .lp-ch {
  animation: lp-ch-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1.2) both;
}

@keyframes lp-ch-in {
  0% { opacity: 0; transform: translateY(10px); }
  35% { opacity: 1; transform: translate(-2px, -3px) rotate(-3deg); }
  65% { opacity: 1; transform: translate(2px, 1px) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}

/* 카드·체크·단계 순서 등장(항목별 지연은 JS 인라인). */
.lp-motion .lp-card,
.lp-motion .lp-chip,
.lp-motion .lp-checks > li,
.lp-motion .lp-steps > li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lp-motion .lp-in .lp-card,
.lp-motion .lp-in .lp-chip,
.lp-motion .lp-in .lp-checks > li,
.lp-motion .lp-in .lp-steps > li {
  opacity: 1;
  transform: none;
}

/* 안전망: reduced-motion 이면 전부 최종 상태로(JS 는 이 때
   .lp-motion 을 달지 않아 이 규칙까지 안 와도 보인다). */
@media (prefers-reduced-motion: reduce) {
  .lp-motion .lp-title .lp-line-in,
  .lp-motion .lp-hero-title,
  .lp-motion .lp-card,
  .lp-motion .lp-chip,
  .lp-motion .lp-checks > li,
  .lp-motion .lp-steps > li {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .lp-motion .lp-statement .lp-ch,
  .lp-motion .lp-statement.lp-in .lp-ch {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .lp-motion .lp-body strong,
  .lp-motion .lp-checks strong {
    background-size: 100% 100% !important;
    transition: none !important;
  }
  .lp-stat-num.lp-landed {
    animation: none !important;
  }
  .lp-strip {
    transition: none !important;
  }
}

/* ── 상단바·하단 고정 CTA ── */

.lp-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px;
  background: var(--lp-bg);
  border-bottom: 1px solid var(--lp-line);
}

.lp-topbar-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex: none;
}

.lp-topbar-spacer {
  flex: 1;
}

.lp-topbar-btn {
  font-size: 14px;
  padding: 8px 14px;
}

.lp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--lp-bg);
  border-top: 1px solid var(--lp-line);
}

.lp-sticky-btn {
  display: block;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
}

/* 하단 고정 두 줄 버튼: 큰 문구 아래 작은 보조 문구(굵게·밝게·숫자 고정폭). */
.lp-btn-label {
  display: block;
}

.lp-btn-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--lp-on-accent);
  font-variant-numeric: tabular-nums;
}

/* ── 폼 위젯 ── */

.lp-form:not(.lp-section) {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 20px 16px;
  scroll-margin-top: 76px;
}

.lp-progress {
  margin-bottom: 16px;
}

.lp-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--lp-line);
  overflow: hidden;
}

.lp-progress-bar span {
  display: block;
  height: 100%;
  background: var(--lp-accent);
  transition: width 0.25s ease;
}

.lp-progress-text {
  font-size: 12px;
  color: var(--lp-muted);
  margin-top: 6px;
  text-align: right;
}

.lp-wstep .fx-public-form-field {
  margin-bottom: 16px;
}

.lp-wnav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.lp-wnav .lp-btn {
  flex: 1;
}

.lp-consent {
  font-size: 14px;
  margin: 16px 0 12px;
}

.lp-consent label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.lp-submit-row .lp-btn {
  width: 100%;
}

.lp-form-error {
  color: #FF8A8A;
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 0;
}

[data-lp-mode="light"] .lp-form-error {
  color: #B42318;
}

.lp-form-result {
  font-size: 14px;
  margin: 12px 0 0;
}

.lp-reassure {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-reassure li::before {
  content: "· ";
}

/* 공용 질문 렌더가 쓰는 기본 입력 모양 (셸 CSS 없이도 서도록 최소치).
   메인 셸 미리보기에서는 style.css 의 흰 카드(.fx-public-form-field)가 함께
   걸리므로 배경·글자색을 테마 토큰으로 되돌린다(운영 미리보기 실측). */
[data-lp-root] .form-control {
  width: 100%;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  background: var(--lp-bg);
  color: var(--lp-fg);
}

[data-lp-root] .form-control::placeholder {
  color: var(--lp-muted);
  opacity: 1;
}

[data-lp-root] .fx-public-form-field {
  background: var(--lp-card);
  border-color: var(--lp-line);
}

[data-lp-root] .fx-public-form-q-label {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--lp-fg);
}

[data-lp-root] .fx-public-form-required {
  color: var(--lp-accent-soft);
}

[data-lp-root][data-lp-mode="light"] .fx-public-form-required {
  color: var(--lp-accent-dark);
}

[data-lp-root] .fx-public-form-q-desc {
  font-size: 13px;
  color: var(--lp-muted);
  margin-bottom: 8px;
}

[data-lp-root] .fx-public-form-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-lp-root] .fx-public-form-option {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  background: var(--lp-card);
  color: var(--lp-fg);
}

/* 셸 :hover(밝은 회색)가 다크 테마를 덮지 않게 테마 표면으로. */
[data-lp-root] .fx-public-form-option:hover {
  background: var(--lp-surface);
}

/* 선택됨: 강조색 테두리로. 배경·글자색은 그대로라 대비가 유지된다. */
[data-lp-root] .fx-public-form-option:has(input:checked) {
  border-color: var(--lp-accent);
  box-shadow: inset 0 0 0 1px var(--lp-accent);
}

[data-lp-root] .fx-public-form-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--lp-accent);
}

[data-lp-root] .fx-public-form-other-input {
  margin-top: 8px;
}

[data-lp-root] .fx-public-form-star {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--lp-line);
  cursor: pointer;
  padding: 4px;
}

[data-lp-root] .fx-public-form-star.is-on {
  color: var(--lp-accent-soft);
}

[data-lp-root] .fx-public-form-heading {
  margin: 0 0 10px;
}

[data-lp-root] .fx-public-form-paragraph {
  margin: 0 0 10px;
}

[data-lp-root] .fx-public-form-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

[data-lp-root] .fx-public-form-caption {
  font-size: 13px;
  color: var(--lp-muted);
  margin-top: 6px;
}

[data-lp-root] .fx-public-form-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
}

[data-lp-root] .fx-public-form-divider {
  border: none;
  border-top: 1px solid var(--lp-line);
  margin: 16px 0;
}

[data-lp-root] .fx-public-form-pixel-notice {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* ── 완료·미리보기·오류 ── */

.lp-done {
  text-align: center;
  padding: 12px 0;
}

.lp-done p {
  color: var(--lp-muted);
  margin: 0 0 12px;
}

.lp-done-btns {
  margin-top: 16px;
}

.lp-dup-note {
  font-size: 14px;
}

.lp-preview-banner {
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  text-align: center;
}

.lp-invalid, .lp-loading {
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.lp-invalid h1 {
  font-size: 20px;
  margin: 0 0 10px;
}

.lp-invalid p, .lp-loading p {
  color: var(--lp-muted);
  margin: 0;
}

/* ── 메인 셸 public 모드 ── */
/* /l/ 이 web/index.html 로 열리면 boot() 가 body.lp-public-mode 를 달고
   로그인 화면을 숨기고 대시보드(렌더 상자)를 보인다. 인라인 토글이 1차,
   여기가 방어선(폼 런타임 body.fx-public-form-mode 와 같은 모양).
   독립 진입(web/l)·go 진입에는 이 선택자 대상이 없어 영향 없음. */
body.lp-public-mode #main-nav,
body.lp-public-mode #page-login,
body.lp-public-mode #page-signup,
body.lp-public-mode .branch-selector,
body.lp-public-mode #bemove-view-as-bar {
  display: none !important;
}

body.lp-public-mode #page-dashboard {
  display: block !important;
  padding-top: 0 !important;
}

body.lp-public-mode #page-dashboard .page-content {
  padding-top: 0 !important;
}
