/* ============================================================================
   embolos 플랫폼 랜딩 전용 — 다크 프리미엄 (Variant 계승)
   토큰: tokens-platform.css (--pf-*). 이 파일은 컴포넌트/레이아웃만 담는다.
   아트디렉션: 다크 프리미엄 핀테크 — 남보라 바탕 + 퍼플→시안 액센트, 캡스 라벨 아이덴티티,
   120px 세로 리듬, 글래스·3D. gallery.html(landing.css)와 별개 표면(공유 클래스 없음).
   접근성: skip-link·:focus-visible·reduced-motion·tap≥44px 는 프로토타입에 없던 보강.
   ============================================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--pf-font-sans);
  background: var(--pf-bg);
  color: var(--pf-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; }

/* 접근성 — 포커스 링(outline:none 금지) */
:focus-visible { outline: 2px solid var(--pf-focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -120%; z-index: 200;
  background: var(--pf-text); color: var(--pf-bg);
  padding: 12px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus-visible { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap, .container { width: 100%; max-width: var(--pf-wrap); margin-inline: auto; padding-inline: 24px; }

/* 아이덴티티 핵심: 캡스 라벨 (10~11px/700/0.14em/uppercase) */
.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-dim);
}
.label--cyan { color: var(--pf-accent-text); }

.gradient-text {
  background: var(--pf-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── 버튼 (탭 타겟 ≥44px) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: var(--pf-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--pf-ease), box-shadow 0.3s var(--pf-ease), background 0.3s var(--pf-ease), border-color 0.3s var(--pf-ease), color 0.3s var(--pf-ease);
  white-space: nowrap;
}
.btn--primary { background: var(--pf-btn-primary-bg); color: var(--pf-btn-primary-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--pf-btn-primary-glow); }
.btn--gradient { background: var(--pf-gradient-cta); color: #fff; }
.btn--gradient:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(112, 0, 255, 0.5); }
.btn--ghost { background: transparent; color: var(--pf-text); border-color: var(--pf-border); }
.btn--ghost:hover { border-color: var(--pf-accent-text); color: var(--pf-accent-text); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 13px; }
.btn--lg { min-height: 52px; padding: 16px 40px; font-size: 16px; }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 48px);
  background: var(--pf-nav-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pf-border);
}
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.logo__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pf-text); box-shadow: 0 0 10px 1px var(--pf-cyan);
}
.nav__links { display: flex; gap: 32px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--pf-dim); transition: color 0.2s; }
.nav__links a:hover { color: var(--pf-text); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__login { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--pf-dim); }
.nav__login:hover { color: var(--pf-text); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 80px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(900px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(112, 0, 255, var(--pf-glow-alpha)), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero h1 .dim { color: var(--pf-dim); }
.hero__sub {
  margin: 28px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--pf-dim);
  line-height: 1.6;
}
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__facts {
  margin-top: 56px;
  display: flex;
  gap: clamp(20px, 5vw, 64px);
  flex-wrap: wrap;
  justify-content: center;
}
.fact { text-align: left; max-width: 200px; }
.fact__k { font-size: 14px; font-weight: 600; }
.fact__k::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pf-accent-text); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 8px var(--pf-cyan); }
.fact__v { margin-top: 6px; font-size: 13px; color: var(--pf-dim); line-height: 1.5; }

/* ===================== 데모 화면 (16:9) — 3단 유기적 전환 ===================== */
.terminal-sec { padding: 0 24px var(--pf-rhythm); }
.sim {
  position: relative; max-width: 1000px; margin-inline: auto;
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  /* 기기 화면 세계관 — 테마와 무관한 다크 고정(라이트 페이지 위 '검은 스크린' 연출).
     내부 term/load/edit 화면의 흰색 알파·시안 규칙이 이 고정에 기대어 유효하다. */
  background: #0a0a1f;
  border: 1px solid rgba(112, 0, 255, 0.35);
  box-shadow: 0 0 60px rgba(112, 0, 255, 0.18), inset 0 0 24px rgba(0, 212, 255, 0.08);
}
.sim__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-bottom: 1px solid var(--pf-border); position: relative; z-index: 3; }
.sim__dot { width: 8px; height: 8px; border-radius: 50%; }
.sim__dot--p { background: var(--pf-purple); box-shadow: 0 0 8px var(--pf-purple); }
.sim__dot--c { background: var(--pf-cyan); box-shadow: 0 0 8px var(--pf-cyan); }
.sim__status { position: relative; margin-left: 6px; flex: 1; height: 14px; }
.sim__status .label { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.6s var(--pf-ease); }
.sim[data-state="term"] .st--term,
.sim[data-state="load"] .st--load,
.sim[data-state="edit"] .st--edit { opacity: 1; }

.sim__stage { position: absolute; inset: 46px 0 0 0; }
.screen { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--pf-ease); pointer-events: none; }
.sim[data-state="term"] .screen--term,
.sim[data-state="load"] .screen--load,
.sim[data-state="edit"] .screen--edit { opacity: 1; }

/* 화면1: 프롬프트 입력 */
.screen--term { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5%, 60px); }
.term-prompt { margin-top: 14px; font-size: clamp(18px, 3vw, 30px); color: var(--pf-cyan); text-shadow: 0 0 15px rgba(0, 212, 255, 0.5); min-height: 1.4em; }
.term-prompt .caret { display: inline-block; width: 3px; height: 1.05em; background: var(--pf-purple); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 화면2: 생성 중 로딩 */
.screen--load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px; }
.load-ring { width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: var(--pf-cyan); border-right-color: var(--pf-purple); animation: spin360 0.9s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }
.load-title { font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; }
.load-bar { width: min(380px, 72%); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--pf-gradient); border-radius: inherit; }
.sim[data-state="load"] .load-bar i { animation: fill 2.6s var(--pf-ease) forwards; }
@keyframes fill { to { width: 100%; } }
.load-steps { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--pf-dim); text-align: left; }
.load-steps span { opacity: 0.3; }
.load-steps b { color: var(--pf-cyan); margin-right: 7px; }
.sim[data-state="load"] .load-steps span { animation: stepin 0.4s var(--pf-ease) forwards; }
.sim[data-state="load"] .load-steps span:nth-child(1) { animation-delay: 0.3s; }
.sim[data-state="load"] .load-steps span:nth-child(2) { animation-delay: 1.2s; }
.sim[data-state="load"] .load-steps span:nth-child(3) { animation-delay: 2.1s; }
@keyframes stepin { to { opacity: 1; } }

/* 화면3: 노코드 편집 */
.screen--edit { display: grid; grid-template-columns: 224px 1fr; background: #0d0d22; }
.edit-panel { border-right: 1px solid var(--pf-border); padding: 20px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.edit-moods { display: flex; gap: 8px; margin-top: 8px; }
.edit-mood { flex: 1; height: 42px; border-radius: 8px; border: 1px solid var(--pf-border); }
.edit-mood--1 { background: linear-gradient(135deg, #2b2b2b, #4a4640); }
.edit-mood--2 { background: linear-gradient(135deg, #5a7a4a, #8fae6b); }
.edit-mood--3 { background: linear-gradient(135deg, #2f6bff, #6aa8ff); outline: 2px solid var(--pf-cyan); outline-offset: 2px; }
.edit-swatches { display: flex; gap: 10px; margin-top: 8px; }
.edit-sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); }
.edit-sw--sel { animation: pulse 1.6s var(--pf-ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--pf-bg), 0 0 0 4px var(--pf-cyan); } 50% { box-shadow: 0 0 0 2px var(--pf-bg), 0 0 0 8px rgba(0, 212, 255, 0.3); } }
.edit-field { margin-top: 8px; height: 34px; border-radius: 8px; border: 1px solid var(--pf-border); background: #05050f; display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: var(--pf-dim); }
.edit-canvas { background: #eef3fb; padding: 16px; overflow: hidden; }
.edit-store { background: #fff; border-radius: 12px; overflow: hidden; height: 100%; border: 1px solid #dfe6f2; display: flex; flex-direction: column; }
.edit-store__nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #eef1f8; }
.edit-store__brand { font-weight: 800; font-size: 13px; color: #1b3aa0; }
.edit-store__hero { padding: 20px 16px; background: linear-gradient(135deg, #e8f0ff, #d3e2ff); }
.edit-store__title { font-size: 18px; font-weight: 800; color: #14306e; }
.edit-store__btn { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; color: #fff; background: #2f6bff; padding: 7px 14px; border-radius: 999px; }
.edit-store__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.edit-store__card { border: 1px solid #e6ecf5; border-radius: 8px; overflow: hidden; }
.edit-store__ph { aspect-ratio: 1/1; background: linear-gradient(135deg, #cfe0ff, #eef4ff); }

/* ===================== 3D SHOWCASE ===================== */
.showcase { padding: var(--pf-rhythm) 0; text-align: center; overflow: hidden; }
.showcase__head { margin-bottom: 12px; }
.showcase h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.showcase h2 br + span, .showcase .h2dim { color: var(--pf-dim); }
.showcase__sub { margin: 16px auto 0; max-width: 520px; color: var(--pf-dim); font-size: 16px; }

.stage { margin-top: 64px; perspective: 2200px; height: 520px; position: relative; }
.ring {
  position: absolute; inset: 0; margin: auto; width: 320px; height: 460px;
  transform-style: preserve-3d;
  animation: ring-spin 26s linear infinite;
}
/* 회전은 어떤 방해도 없이 계속 — hover pause 없음 */
@keyframes ring-spin { to { transform: rotateY(-360deg); } }

.store {
  position: absolute; inset: 0; width: 320px; height: 460px;
  border-radius: 24px; overflow: hidden;
  background: var(--card-bg, #fff);
  border: 1px solid var(--pf-glass-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  display: flex; flex-direction: column;
}
/* 링 위 각 카드의 회전 각도는 템플릿에서 인라인 style(rotateY N deg)로 균등 분배 —
   showcase_stores 개수(1~3)에 무관하게 배치. translateZ 250px 고정. */
.store__top { height: 58%; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.store__badge { position: absolute; top: 14px; left: 14px; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,0.35); color: #fff; backdrop-filter: blur(6px); }
.store__name { color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.store__body { flex: 1; background: var(--store-surface, #fff); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.store__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store__item { border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.store__thumb { aspect-ratio: 4/3; background: var(--store-accent-soft); }
.store__body .store__cta { margin-top: auto; text-align: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--store-accent); padding: 10px; border-radius: 10px; }
.store__addr { margin-top: auto; font-family: var(--pf-font-mono); font-size: 10px; color: #6a6a6a; text-align: center; }

/* 3 무드 데모 팔레트 (스토어 자체 무드 — 플랫폼 다크 위 라이트 스토어) */
.store--mono   { --store-surface:#faf9f7; --store-accent:#8a7a52; --store-accent-soft:#efe9dd; }
.store--mono   .store__top { background: linear-gradient(140deg,#2b2b2b,#4a4640); }
.store--nature { --store-surface:#fbf8f3; --store-accent:#b4623a; --store-accent-soft:#f0e2d5; }
.store--nature .store__top { background: linear-gradient(140deg,#5a7a4a,#8fae6b); }
.store--vivid  { --store-surface:#fffafa; --store-accent:#e2482f; --store-accent-soft:#ffe0d8; }
.store--vivid  .store__top { background: linear-gradient(140deg,#ff5a3c,#ff9a3c); }
/* v2 무드 5종 쇼케이스 스와치 — DESIGN.md §2 브랜드색 근사(플랫폼 랜딩 전용 hex). */
.store--cream  { --store-surface:#f6efe3; --store-accent:#b04716; --store-accent-soft:#ecdcc9; }
.store--cream  .store__top { background: linear-gradient(140deg,#8a3d18,#c05a2a); }
.store--milk   { --store-surface:#fdeef3; --store-accent:#c22e60; --store-accent-soft:#f7d9e5; }
.store--milk   .store__top { background: linear-gradient(140deg,#c22e60,#e86fa0); }
.store--night  { --store-surface:#20283a; --store-accent:#d9a441; --store-accent-soft:#2c3450; }
.store--night  .store__top { background: linear-gradient(140deg,#141a2c,#2a3350); }
.store--night  .store__addr { color:#9aa6bd; }
.store--forest { --store-surface:#eef4ec; --store-accent:#3e7a4e; --store-accent-soft:#d8e7d6; }
.store--forest .store__top { background: linear-gradient(140deg,#274d31,#3e7a4e); }
.store--sea    { --store-surface:#eaf2f8; --store-accent:#2f6b9e; --store-accent-soft:#d3e4f0; }
.store--sea    .store__top { background: linear-gradient(140deg,#1f4b70,#2f6b9e); }

/* ===================== FEATURES ===================== */
.features { padding: var(--pf-rhythm) 0; }
.features__head { text-align: center; margin-bottom: 56px; }
.features h2 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; text-wrap: balance; }
.features__sub { margin: 14px auto 0; max-width: 520px; color: var(--pf-dim); font-size: 16px; }
.feat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--pf-border);
  border: 1px solid var(--pf-border); border-radius: 20px; overflow: hidden;
}
.feat {
  background: var(--pf-bg); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 12px; min-height: 200px;
  transition: background 0.3s var(--pf-ease);
}
.feat:hover { background: var(--pf-panel); }
.feat__idx { font-family: var(--pf-font-mono); font-size: 13px; color: var(--pf-accent-text); }
.feat h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.feat p { color: var(--pf-dim); font-size: 15px; line-height: 1.6; }

/* ===================== STEPS ===================== */
.steps { padding: var(--pf-rhythm) 0; }
.steps__head { text-align: center; margin-bottom: 56px; }
.steps h2 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.steps__sub { margin: 14px auto 0; max-width: 520px; color: var(--pf-dim); font-size: 16px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 32px; border: 1px solid var(--pf-border); border-radius: 20px; background: var(--pf-panel); position: relative; }
.step__n { font-family: var(--pf-font-mono); font-size: 40px; font-weight: 700; line-height: 1; margin-bottom: 20px; }
.step:nth-child(1) .step__n { color: var(--pf-accent-text); }
.step:nth-child(2) .step__n { color: #4b8cff; }
.step:nth-child(3) .step__n { color: var(--pf-purple); }
/* .beta-week-grid는 카드가 4개다 — 04가 본문 흰색을 상속해 시퀀스가 끊긴다. */
.step:nth-child(4) .step__n { color: #7b6cff; }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--pf-dim); font-size: 14px; line-height: 1.6; }
.steps__note { margin-top: 24px; font-size: 12px; color: var(--pf-dim); text-align: center; max-width: 640px; margin-inline: auto; line-height: 1.6; }

/* ===================== PRICING ===================== */
.pricing { padding: var(--pf-rhythm) 0; background: var(--pf-surface); }
.pricing__head { text-align: center; margin-bottom: 48px; }
.pricing h2 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; text-wrap: balance; }
.pricing__sub { margin: 14px auto 0; max-width: 560px; color: var(--pf-dim); font-size: 15px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  background: var(--pf-panel); border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-card); padding: 40px 32px;
  display: flex; flex-direction: column;
}
.price--featured { border-color: var(--pf-purple); box-shadow: 0 0 0 1px var(--pf-purple), 0 24px 60px rgba(112,0,255,0.2); }
.price__badge { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--pf-gradient-cta); padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.price__amt { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.price__amt small { font-size: 15px; font-weight: 500; color: var(--pf-dim); }
.price__desc { color: var(--pf-dim); font-size: 14px; min-height: 42px; }
.price ul { margin: 20px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.price li { font-size: 14px; display: flex; gap: 9px; align-items: center; }
.price li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,212,255,0.14); border: 1px solid var(--pf-accent-text); flex: none; }
.price .btn { margin-top: auto; width: 100%; }
.pricing__note { margin-top: 24px; font-size: 12px; color: var(--pf-dim); text-align: center; max-width: 680px; margin-inline: auto; line-height: 1.6; }

/* ===================== EVENT ===================== */
.event { padding: var(--pf-rhythm) 0; }
.event__inner { border: 1px solid var(--pf-border); border-radius: var(--pf-radius-card); background: linear-gradient(160deg, var(--pf-panel), rgba(112,0,255,0.06)); padding: clamp(32px, 6vw, 72px); text-align: center; }
.event h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; text-wrap: balance; }
.event__sub { margin: 16px auto 0; max-width: 560px; color: var(--pf-dim); }
.event__steps { margin: 32px auto 0; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; max-width: 720px; }
.event__step { font-size: 14px; color: var(--pf-dim); display: flex; align-items: center; gap: 10px; }
.event__step b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pf-gradient-cta); color: #fff; font-size: 12px; }
.event .btn { margin-top: 32px; }

/* ===================== CTA + FOOTER ===================== */
.cta { padding: var(--pf-rhythm) 0; text-align: center; }
.cta h2 { font-size: clamp(30px, 6vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.cta p { margin: 20px auto 36px; color: var(--pf-dim); max-width: 440px; }

.footer { border-top: 1px solid var(--pf-border); padding-top: 72px; padding-bottom: 24px; }
.footer__brand { padding-bottom: 32px; }
.footer__brand .logo { margin-bottom: 14px; }
.footer__brand p { color: var(--pf-dim); font-size: 14px; max-width: 360px; line-height: 1.6; }

/* platform_footer.html 파셜(.platform-legal) — 다크 표면용 스타일 */
.platform-legal { padding-block: 24px 8px; border-top: 1px solid var(--pf-border); }
.platform-legal__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; font-size: 14px; }
.platform-legal__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--pf-text); }
.platform-legal__links a:hover { color: var(--pf-accent-text); }
.platform-legal__biz { margin: 0; font-size: 12px; line-height: 1.7; color: var(--pf-dim); }

/* ===================== PRIVATE BETA ===================== */
.beta-hero { min-height: min(880px, 100vh); }
.beta-fit__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px auto 0; max-width: 760px; text-align: left; }
.beta-fit__grid > div { border: 1px solid var(--pf-border); border-radius: 14px; padding: 22px; background: rgba(255,255,255,0.02); }
.beta-fit__grid b { color: var(--pf-accent-text); font-size: 14px; }
.beta-fit__grid p { margin-top: 8px; color: var(--pf-dim); font-size: 14px; line-height: 1.65; }
.beta-week-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.beta-week-grid .step { padding: 26px 22px; }
.beta-week-grid .step__n { font-size: 32px; }
.beta-guide-section { padding: var(--pf-rhythm) 0; }
.beta-guide-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(30px, 5vw, 56px); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-card); background: linear-gradient(120deg, rgba(0,212,255,0.09), rgba(112,0,255,0.1)); }
.beta-guide-card h2 { margin-top: 12px; font-size: clamp(25px, 4vw, 38px); letter-spacing: -0.03em; }
.beta-guide-card p { margin-top: 12px; color: var(--pf-dim); max-width: 560px; }
.beta-faq { max-width: 840px; }
.beta-faq details { max-width: 680px; margin: 18px auto 0; padding: 18px 0; text-align: left; border-top: 1px solid var(--pf-border); }
.beta-faq summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.beta-faq details p { margin: 12px 0 0; color: var(--pf-dim); font-size: 14px; line-height: 1.65; }

.beta-form-page, .beta-guide-page { min-height: 100vh; padding: 132px 24px 72px; }
.beta-form-wrap, .beta-guide-wrap { width: min(100%, 760px); margin-inline: auto; }
.beta-form-wrap h1, .beta-guide-wrap h1 { margin-top: 12px; font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.04em; line-height: 1.12; }
.beta-form-intro, .beta-guide-wrap > p { margin-top: 18px; max-width: 640px; color: var(--pf-dim); line-height: 1.7; }
.beta-form { margin-top: 36px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-card); background: var(--pf-panel); }
.beta-form label, .beta-form legend { display: block; font-size: 14px; font-weight: 650; }
.beta-form > label, .beta-form fieldset { margin-top: 20px; }
.beta-form > label:first-of-type { margin-top: 0; }
.beta-form label span { color: var(--pf-dim); font-weight: 500; }
.beta-form input[type="text"], .beta-form input[type="email"], .beta-form input[type="url"], .beta-form input[type="number"], .beta-form input:not([type]) { width: 100%; min-height: 46px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--pf-border); border-radius: 10px; color: var(--pf-text); background: var(--pf-field-bg); font: inherit; }
/* :focus 가 아니라 :focus-visible — 특이도 (0,2,1)로 전역 :focus-visible(28행)을 이기면
   테두리가 없는 체크박스 3개의 유일한 포커스 단서가 알파 0.24 헤일로만 남는다.
   같은 파일 계산기 입력(:493/506)은 이미 :focus-visible + 불투명 시안을 쓴다 — 내부 일관성. */
.beta-form input:focus-visible { border-color: var(--pf-focus); outline: 2px solid var(--pf-focus); outline-offset: 2px; }
.beta-form fieldset { border: 0; padding: 0; }
.beta-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.beta-choice-grid label { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--pf-border); border-radius: 10px; color: var(--pf-dim); font-weight: 500; cursor: pointer; }
.beta-choice-grid input, .beta-check input { width: 18px; height: 18px; accent-color: var(--pf-accent-text); flex: 0 0 auto; }
.beta-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.beta-form-grid + label, .beta-form-grid + fieldset { margin-top: 20px; }
.beta-check { display: flex !important; align-items: flex-start; gap: 10px; color: var(--pf-dim); font-weight: 500 !important; line-height: 1.55; cursor: pointer; }
.beta-check a { color: var(--pf-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.beta-form .btn { width: 100%; margin-top: 26px; }
.beta-form-error { margin-top: 28px; padding: 14px 16px; border: 1px solid #f27b8b; border-radius: 12px; color: var(--pf-danger-text); background: rgba(242,123,139,0.12); }
.beta-form-note { margin: 18px 4px 0; color: var(--pf-dim); font-size: 13px; line-height: 1.65; }
.beta-complete { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; }
.beta-complete h1 { margin-top: 14px; font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.04em; }
.beta-complete p { max-width: 500px; margin-top: 18px; color: var(--pf-dim); line-height: 1.7; }
.beta-complete .beta-complete__note { margin-top: 8px; font-size: 14px; }
.beta-complete .btn { margin-top: 32px; }
.beta-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.beta-checklist section { padding: 24px; border: 1px solid var(--pf-border); border-radius: 16px; background: var(--pf-panel); }
.beta-checklist h2 { font-size: 19px; }
.beta-checklist ul { display: grid; gap: 12px; margin-top: 18px; color: var(--pf-dim); font-size: 14px; line-height: 1.55; }
.beta-guide-note { margin-top: 24px !important; padding: 16px; border-left: 2px solid var(--pf-accent-text); background: rgba(0,212,255,0.06); font-size: 13px; }
.beta-guide-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ===================== SCROLL REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--pf-ease), transform 0.8s var(--pf-ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .feat-grid, .step-grid, .price-grid, .beta-week-grid, .beta-checklist { grid-template-columns: 1fr; }
  .sim { aspect-ratio: 4 / 3; }
  .screen--edit { grid-template-columns: 122px 1fr; }
  .edit-panel { padding: 12px; gap: 12px; }
  .edit-store__title { font-size: 15px; }
}
@media (max-width: 560px) {
  .hero__facts { gap: 20px; }
  .beta-fit__grid, .beta-form-grid, .beta-choice-grid { grid-template-columns: 1fr; }
  .beta-guide-card { align-items: flex-start; flex-direction: column; }
  .beta-form-page, .beta-guide-page { padding-inline: 16px; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ring { animation: none; }
  .term-prompt .caret { animation: none; }
}

/* ═══════════ 순이익 계산기(/calculator — calculator.html) ═══════════
   랜딩과 같은 토큰·어휘(--pf-*), 시그니처는 흰 영수증(--paper-* — 콘솔 '장부' 세계관). */
.calc-hero { text-align: center; padding: 152px 24px 48px; position: relative; }
.calc-hero::before {
  content: ""; position: absolute; top: 10%; left: 50%; width: min(720px, 90vw); height: 360px;
  transform: translateX(-50%); pointer-events: none; z-index: 0; filter: blur(20px);
  background: radial-gradient(ellipse at center, rgba(112, 0, 255, var(--pf-glow-alpha)), transparent 62%);
}
.calc-hero > * { position: relative; z-index: 1; }
.calc-hero__eyebrow { margin-bottom: 16px; display: inline-block; }
.calc-hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.calc-hero h1 .dim { color: var(--pf-dim); }
.calc-hero__sub { margin: 20px auto 0; max-width: 520px; font-size: clamp(15px, 2vw, 18px); color: var(--pf-dim); line-height: 1.6; }

.calc { padding-bottom: var(--pf-rhythm); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 900px) { .calc__grid { grid-template-columns: 1fr; } }

.calc__inputs { display: flex; flex-direction: column; gap: 24px; background: var(--pf-panel);
  border: 1px solid var(--pf-border); border-radius: var(--pf-radius-card); padding: 32px; }
.calc__field { border: 0; padding: 0; margin: 0; }
.calc__field label, .calc__field legend { display: block; font-size: 13px; font-weight: 700;
  color: var(--pf-dim); margin-bottom: 8px; letter-spacing: 0.02em; }
.calc__money { display: flex; align-items: center; gap: 8px; }
.calc__money input {
  width: 100%; min-height: 52px; padding: 12px 16px; font: 700 22px/1.2 var(--pf-font-sans);
  font-variant-numeric: tabular-nums; color: var(--pf-text); text-align: right;
  background: var(--pf-bg); border: 1px solid var(--pf-border); border-radius: 16px;
}
.calc__money input:focus-visible { outline: 2px solid var(--pf-focus); outline-offset: 2px; border-color: var(--pf-focus); }
.calc__money span { font-size: 15px; font-weight: 700; color: var(--pf-dim); flex: none; }
.calc__money--sm input { min-height: 44px; font-size: 17px; max-width: 120px; }
.calc__rate { margin-top: 12px; }
.calc__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__preset { position: relative; }
.calc__preset input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.calc__preset span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; color: var(--pf-dim); background: var(--pf-bg);
  border: 1px solid var(--pf-border); border-radius: var(--pf-radius-pill); transition: color 0.15s ease-out, border-color 0.15s ease-out;
}
.calc__preset input:checked + span { color: var(--pf-text); border-color: var(--pf-purple); background: rgba(112, 0, 255, 0.12); }
.calc__preset input:focus-visible + span { outline: 2px solid var(--pf-focus); outline-offset: 2px; }
.calc__preset input:hover + span { border-color: var(--pf-dim); }
.calc__note { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--pf-faint); }

/* 영수증 — 다크 책상 위 흰 종이(--paper-*, 테마 불변). 숫자는 tabular-nums. */
.calc__receipt { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.receipt {
  background: var(--paper); color: var(--paper-ink); border-radius: 24px; padding: 32px;
  box-shadow: 0 24px 64px rgba(3, 3, 18, 0.5);
}
.receipt .num { font-variant-numeric: tabular-nums; }
.receipt__title { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--paper-dim); margin-bottom: 16px; }
.receipt__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; font-size: 16px; }
.receipt__row b { font-weight: 800; }
.receipt__row i { font-style: normal; color: var(--paper-faint); }
.receipt__row--sub { padding: 0 0 8px; font-size: 13px; color: var(--paper-dim); }
.receipt__rule { border-top: 1px dashed var(--paper-line); margin: 8px 0; }
.receipt__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--paper-2);
}
.receipt__total span { font-size: 14px; font-weight: 700; color: var(--paper-dim); }
.receipt__total b { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--paper-accent); letter-spacing: -0.02em; }
.receipt__total b.is-neg { color: var(--paper-danger); }
.receipt__year { margin-top: 12px; font-size: 14px; color: var(--paper-dim); }
.receipt__year b { color: var(--paper-ink); }
.receipt__stamp { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--paper-dim);
  border-left: 3px solid var(--paper-line); padding-left: 12px; }
.calc__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.calc__disclaimer { margin-top: 48px; font-size: 12px; line-height: 1.6; color: var(--pf-faint); max-width: 720px; }

/* ═══ 플랫폼 광고 슬롯(partials/platform_adfit.html — dormant 시 미렌더) ═══ */
.pf-ad { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 24px 48px; }
.pf-ad__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--pf-faint); }

/* ═══ 인쇄 — /beta/guide 준비표 ═══
   준비표에 window.print() 버튼이 있는데 스타일시트 전체에 @media print가 없었다.
   페이지가 data-theme="dark" 고정이라 배경은 인쇄되지 않고 color만 남아, 흰 종이에
   흰 제목(h1·h2)과 ghost 버튼이 사라진다(체크 항목 <li>는 회색이라 정상 인쇄됐다).
   셀러가 실제로 출력해 손으로 채우는 용도이므로 잉크 기준으로 토큰을 뒤집는다. */
@media print {
  html[data-surface="platform"] {
    --pf-bg: #fff; --pf-panel: #fff; --pf-surface: #fff;
    --pf-text: #111; --pf-dim: #444; --pf-border: #bbb; --pf-cyan: #036;
  }
  body { background: #fff; color: #111; }
  /* 화면 전용 크롬 — 인쇄물에서 종이와 잉크를 낭비한다 */
  .nav, .skip-link, .beta-guide-actions, .platform-legal__links, .pf-ad { display: none !important; }
  /* fixed nav 자리를 비우던 상단 여백 제거 */
  .beta-guide-page { padding: 0 !important; }
  .beta-checklist { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .beta-checklist section { break-inside: avoid; page-break-inside: avoid; border-color: #bbb; }
  .beta-guide-note { border-left-color: #036; background: none; }
  a { text-decoration: none; color: inherit; }
}
