/* ===== J PLAY 공통 스타일 ===== */
:root {
  --green: #155E4B;
  --green-dark: #0E4537;
  --green-soft: #E6F0EC;
  --red: #C8372D;
  --red-soft: #FBEAE8;
  --ink: #1E2622;
  --muted: #5E6A65;
  --line: #E3E0D8;
  --paper: #FAF8F3;
  --card: #FFFFFF;
  --radius: 14px;
  --max: 1040px;
}

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

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

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--green); }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ----- 머리글 ----- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 18px; letter-spacing: 0.02em;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); background: var(--green-soft); }

/* ----- 공통 섹션 ----- */
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--red); margin-bottom: 12px;
}
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 4.2vw, 32px); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 19px; font-weight: 700; }
.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); margin-top: 18px; max-width: 620px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ----- 첫 화면 히어로 ----- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero h1 .accent { color: var(--green); }
.hero-stamp {
  position: absolute; right: -30px; top: 40px; width: 240px; height: 240px;
  opacity: 0.9; transform: rotate(-12deg); pointer-events: none;
}
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero-stamp { width: 140px; height: 140px; right: -36px; top: 16px; opacity: 0.18; }
}

/* ----- 이름 이야기 ----- */
.story { background: var(--green); color: #fff; }
.story h2 { color: #fff; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.story-item {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius); padding: 26px;
}
.story-letter { font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 12px; }
.story-letter.red { color: #FFB4AD; }
.story-item p { color: rgba(255,255,255,0.86); }
@media (max-width: 640px) { .story-grid { grid-template-columns: 1fr; } }

/* ----- 제품 카드 ----- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 860px) { .products-grid { grid-template-columns: 1fr; } }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s;
}
a.product:hover { border-color: var(--green); transform: translateY(-2px); }
.product-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.product-icon.green { background: var(--green-soft); color: var(--green); }
.product-icon.gray { background: #EEECE6; color: var(--muted); }
.product p { color: var(--muted); font-size: 15px; flex: 1; }
.badge {
  align-self: flex-start; font-size: 12.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.badge-live { background: var(--red-soft); color: var(--red); }
.badge-soon { background: #EEECE6; color: var(--muted); }
.product-more { font-size: 14px; font-weight: 700; color: var(--green); }
.product.is-soon { background: transparent; border-style: dashed; }

/* ----- 문의 ----- */
.contact-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px;
}
.contact-box p { color: var(--muted); }
.mail { font-weight: 700; font-size: 17px; word-break: break-all; color: var(--ink); }

/* ----- 바닥글 ----- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ----- 폼미 페이지 ----- */
.formme-hero { padding: 72px 0 56px; }
.formme-hero .product-name { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.formme-hero .product-name .product-icon { width: 60px; height: 60px; font-size: 24px; }
.formme-hero .product-name span { font-weight: 700; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.feature .num { font-size: 13px; font-weight: 800; color: var(--red); letter-spacing: 0.08em; }
.feature h3 { margin: 8px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* 서식 미리보기 (도장 찍힌 문서 느낌) */
.doc-preview {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(21, 94, 75, 0.08);
  padding: 22px; max-width: 420px; position: relative; font-size: 13px;
}
.doc-preview .doc-title { text-align: center; font-weight: 800; font-size: 17px; letter-spacing: 0.3em; margin-bottom: 14px; }
.doc-preview table { width: 100%; border-collapse: collapse; }
.doc-preview th, .doc-preview td { border: 1px solid #CFCBC1; padding: 7px 8px; text-align: left; }
.doc-preview th { background: var(--green-soft); color: var(--green-dark); font-weight: 700; width: 34%; }
.doc-preview .stamp {
  position: absolute; right: 18px; bottom: 14px; width: 62px; height: 62px;
  border: 2.5px solid var(--red); border-radius: 50%; color: var(--red);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  transform: rotate(-14deg); opacity: 0.85; background: rgba(255,255,255,0.6);
}
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.check-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.browser-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.browser-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; font-weight: 700; font-size: 15px;
}
.browser-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }

.notice {
  background: var(--red-soft); border-left: 4px solid var(--red); border-radius: 8px;
  padding: 16px 18px; color: #6E211B; font-size: 15px; margin-top: 24px;
}

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-top: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--red); }
.faq details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ----- 준비 중 페이지 ----- */
.soon-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.soon-page .product-icon { margin: 0 auto 20px; width: 72px; height: 72px; font-size: 28px; }
.soon-page .lead { margin-left: auto; margin-right: auto; }
.soon-page .btn-row { justify-content: center; }

/* ----- 폼미 앱 아이콘 (실제 아이콘과 같은 빨간 도장 느낌) ----- */
.product-icon.formme {
  background: var(--red); color: #fff; font-size: 15px; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
.formme-hero .product-name .product-icon.formme { font-size: 18px; }

/* ----- 실제 화면 스크린샷 ----- */
.shot {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(21, 94, 75, 0.12);
}
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: 13.5px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.formme-hero .split { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 860px) { .formme-hero .split { grid-template-columns: 1fr; } }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 860px) { .shot-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; display: grid; gap: 10px; margin-top: 18px; }
.steps li {
  counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px 14px 56px; position: relative;
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}

/* ----- 개인정보처리방침 ----- */
.policy { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.policy h1 { font-size: clamp(24px, 4.6vw, 32px); }
.policy .meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.policy .box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-top: 24px;
}
@media (max-width: 560px) { .policy .box { padding: 20px; } }
.policy h2 { font-size: 18px; margin: 30px 0 8px; color: var(--green); }
.policy p { font-size: 15.5px; }
.back-link { display: inline-block; font-size: 14px; font-weight: 700; text-decoration: none; margin-bottom: 18px; }

/* ----- 픽쳐캡쳐 페이지 (아이콘의 보라색을 포인트로) ----- */
.pc { --pc: #5B3DF5; --pc-soft: #EFEBFF; }
.app-icon-img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px rgba(91, 61, 245, 0.25); }
.product-icon.has-img { padding: 0; overflow: hidden; background: none; }
.product-icon.has-img img { width: 100%; height: 100%; }
.badge-pc { background: var(--pc-soft); color: var(--pc); }
.pc .eyebrow { color: var(--pc); }
.pc .feature .num { color: var(--pc); }
.pc .check-list li::before { background: var(--pc); }
.pc .steps li::before { background: var(--pc); }
.pc .notice { background: var(--pc-soft); border-left-color: var(--pc); color: #32208F; }
.pc .faq summary::before { color: var(--pc); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.platform {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.platform small { font-weight: 600; color: var(--pc); }

/* 휴대폰 모양 미리보기 */
.phone {
  width: 290px; max-width: 100%; margin: 0 auto; background: #111; border-radius: 40px;
  padding: 12px; box-shadow: 0 24px 50px rgba(50, 32, 143, 0.22);
}
.phone-screen { background: #F7F6FB; border-radius: 30px; overflow: hidden; padding: 22px 14px 16px; min-height: 520px; }
.ps-brand { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--pc); }
.ps-title { font-size: 20px; font-weight: 800; margin-top: 2px; }
.ps-sub { font-size: 12px; color: var(--muted); }
.ps-search { margin-top: 12px; background: #fff; border: 1px solid #E2DFEE; border-radius: 10px; padding: 9px 11px; font-size: 12px; color: #9A95AD; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ps-chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid #E2DFEE; color: #4A4560; }
.ps-chip.on { background: var(--pc); border-color: var(--pc); color: #fff; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ps-card { background: #fff; border-radius: 12px; border: 1px solid #ECE9F5; overflow: hidden; }
.ps-thumb { height: 74px; display: grid; place-items: center; font-size: 26px; }
.ps-card .t { font-size: 11.5px; font-weight: 700; padding: 7px 8px 2px; line-height: 1.35; }
.ps-card .k { font-size: 10px; color: var(--pc); font-weight: 700; padding: 0 8px 8px; }
.ps-add { margin-top: 12px; background: var(--pc); color: #fff; text-align: center; border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 800; }

.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-cloud span {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 15px;
}
.tablet-shot { max-width: 380px; margin: 0 auto; width: 100%; }
