/* 제이팟 J.POD 홈페이지 스타일 */
@import url("https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT.css");

:root {
  --paper: #FFFFFF;
  --ink: #000000;
  /* 인스타그램 그라데이션 + 유튜브 레드 */
  --insta: linear-gradient(125deg, #5B2BD9 0%, #9B2FBF 28%, #D62976 58%, #F2552C 84%, #FA9A3A 100%);
  --pink: #D62976;
  --purple: #7B2FD0;
  --red: #E60000;        /* 유튜브 레드 (흰 글씨 대비 확보한 톤) */
  --red-hover: #C40000;
  --cobalt: var(--pink); /* 예전 이름 호환 */
  --lime: var(--red);
  --fog: #F1F2F6;
  --mute: #565B66;
  --line: #E3E5EB;

  /* 예전 이름 호환 (회원 페이지 등) */
  --accent: var(--lime);
  --cream: var(--fog);
  --ink-2: #33363D;
  --ink-3: var(--mute);
  --coral: #FF6B4A;
  --sky: #8EC5FF;

  --font: "SUIT", "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 128px 0; }
.bg-fog, .bg-cream { background: var(--fog); }

.h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; }
.lead { font-size: 18px; line-height: 1.75; color: var(--mute); max-width: 520px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 64px; }

.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { min-width: 0; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font-family: inherit; font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  border: 2px solid var(--ink); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24262B; color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-accent, .btn-lime, .btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-accent:hover, .btn-lime:hover, .btn-red:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* 헤더 */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px; background: var(--insta); color: #fff;
  font-weight: 900; font-size: 19px;
}
.logo-text { font-weight: 900; font-size: 23px; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--pink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.auth-nav { display: inline-flex; align-items: center; gap: 22px; }

/* 히어로 */
.hero { background: var(--insta); color: #fff; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.88); }
.hero-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: #FF0000; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.hero h1 { font-size: clamp(44px, 7vw, 104px); font-weight: 900; line-height: 1.04; letter-spacing: -0.055em; }
.hero p.sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: rgba(255,255,255,.86); max-width: 500px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }


/* 히어로 휴대폰 피드 */
.feed-phone {
  flex: 0 1 340px; margin: 0 auto;
  width: 320px; height: 620px; border-radius: 48px; padding: 12px;
  background: var(--ink); position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,30,.6);
  transform: rotate(3deg);
}
.feed-screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; position: relative; background: #000; }
.feed-track { display: flex; flex-direction: column; animation: feed 18s cubic-bezier(.7,0,.3,1) infinite; }
.reel {
  height: 596px; flex-shrink: 0; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 22px; gap: 8px; color: #fff;
}
.reel .art { position: absolute; inset: 0; overflow: hidden; }
.reel .meta { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 220px; }
.reel .who { font-size: 15px; font-weight: 800; }
.reel .cap { font-size: 14px; line-height: 1.5; font-weight: 500; opacity: .92; }
.reel .side { position: absolute; right: 16px; bottom: 96px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.reel .side span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.reel .label { position: absolute; top: 22px; left: 22px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.35); padding: 6px 10px; border-radius: 999px; }
.reel.r1 { background: #1F1A2E; }
.reel.r2 { background: #7B5CFF; }
.reel.r3 { background: #00A884; }
.reel.r4 { background: #1F1A2E; } /* 첫 화면과 같게 — 끊김 없는 반복용 */
@keyframes feed {
  0%, 22%   { transform: translateY(0); }
  33%, 55%  { transform: translateY(-596px); }
  66%, 88%  { transform: translateY(-1192px); }
  100%      { transform: translateY(-1788px); }
}

/* 업종 */
.band { background: var(--ink); color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-top: 28px; padding-bottom: 28px; }
.band b { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.6); margin-right: 8px; }
.band span { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -0.02em; }

/* 고민 (대화) */
.chat-wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.chat-wrap .intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chat { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 460px; padding: 20px 24px; border-radius: 26px; font-size: 18px; line-height: 1.6; }
.bubble small { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.bubble.them { background: var(--fog); border-bottom-left-radius: 8px; align-self: flex-start; }
.bubble.them small { color: var(--mute); }
.bubble.us { background: var(--insta); color: #fff; border-bottom-right-radius: 8px; align-self: flex-end; font-weight: 700; margin-top: 10px; }
.bubble.us small { color: rgba(255,255,255,.75); }

/* 서비스 (행) */
.svc-list { border-top: 2px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.svc h3 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; }
.svc p { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.svc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--fog); }
.svc.full li { background: var(--red); color: #fff; }

/* 진행 방식 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: var(--ink); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border: 2px solid var(--ink); font-size: 20px; font-weight: 900; position: relative;
}
.steps li:last-child::before { background: var(--red); border-color: var(--red); color: #fff; }
.steps h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.steps p { font-size: 16px; line-height: 1.7; color: var(--mute); }

/* 왜 제이팟 */
.why .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.why-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.why-text p { font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.why-list { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; }
.why-item { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; border-top: 1px solid #D4D7DF; }
.why-item:last-child { border-bottom: 1px solid #D4D7DF; }
.why-item strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.why-item span { font-size: 16px; line-height: 1.7; color: var(--mute); }

/* 요금제 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--paper); border: 1.5px solid var(--line); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.plan .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan .name { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.plan .price { font-size: 16px; font-weight: 700; color: var(--mute); }
.plan .desc { font-size: 17px; line-height: 1.7; color: var(--ink-2); flex: 1; }
.plan .btn { margin-top: 12px; }
.plan .rec { background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; }
.plan.best { background: var(--insta); border-color: transparent; color: #fff; }
.plan.best .price { color: rgba(255,255,255,.8); }
.plan.best .desc { color: rgba(255,255,255,.92); }

/* 상담 신청 (대기표) */
.contact { background: var(--insta); color: #fff; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-text h2 { font-size: clamp(36px, 5vw, 72px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.08; }
.contact-text p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.88); }
.contact-info { display: flex; flex-direction: column; gap: 10px; font-size: 17px; font-weight: 600; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.3); }
.contact-info span { color: #fff; }

.form {
  flex: 1 1 480px; min-width: 0; color: var(--ink);
  background: var(--paper); border-radius: 28px; padding: 0 40px 40px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 -40px 8px; padding: 26px 40px 24px;
  border-bottom: 2px dashed #C9CCD6; position: relative;
}
.ticket-head::before, .ticket-head::after {
  content: ""; position: absolute; bottom: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--fog);
}
.ticket-head::before { left: 12px; }
.ticket-head::after { right: 12px; }
.ticket-head strong { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.ticket-head span { font-size: 14px; font-weight: 700; color: var(--mute); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field .req { color: #C2410C; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; font-weight: 500; padding: 15px 16px;
  border: 1.5px solid #D4D7DF; border-radius: 14px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(214,41,118,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row .field { flex: 1 1 180px; min-width: 0; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.agree input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--pink); }
.agree a { text-decoration: underline; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 15px; font-weight: 700; min-height: 22px; }
.form-msg:empty { min-height: 0; }
.form-msg.ok { color: #166534; }
.form-msg.err { color: #B91C1C; }
.form .btn[disabled] { opacity: .5; cursor: wait; }
.member-hint { font-size: 13px; line-height: 1.6; color: var(--mute); text-align: center; }
.member-hint a, .form-msg a { text-decoration: underline; font-weight: 700; }
.member-hint[hidden], .nudge[hidden] { display: none; }
.nudge { background: var(--fog); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.nudge p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.nudge p b { color: var(--ink); font-size: 16px; }

/* 푸터 */
.footer { background: var(--ink); color: #A9ADB8; padding: 72px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; }
.footer .brand { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.footer .footer-slogan { margin: 0; font-size: clamp(24px, 3vw, 40px); font-weight: 900; line-height: 1.3; letter-spacing: -1px; color: #fff; }
.footer .biz { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.7; }
.footer a { color: #fff; text-decoration: underline; }

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

/* ===== 회원 페이지 (로그인 · 회원가입 · 마이페이지 · 관리자) ===== */
.auth-body { background: var(--fog); }
.auth-main { max-width: 560px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; gap: 20px; }
.auth-main.wide { max-width: 1240px; }
.auth-card { background: #fff; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.auth-card.narrow { max-width: 440px; width: 100%; margin: 0 auto; }
.auth-card h1 { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; }
.auth-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { font-size: 15px; line-height: 1.6; color: var(--mute); margin-top: -8px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn { width: 100%; }
.field input:disabled { background: var(--fog); color: var(--mute); }
.hint { font-size: 13px; line-height: 1.6; color: var(--mute); }
.auth-alt { text-align: center; font-size: 15px; color: var(--ink-2); }
.auth-alt a { text-decoration: underline; font-weight: 700; }
.auth-alt.small { font-size: 13px; margin-top: -8px; }
.agrees { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.agree.all { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.notice { border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.7; font-weight: 600; }
.notice.ok { background: #FCE7F1; color: #85134A; }
.notice.err { background: #FDE8E4; color: #8A1C0C; }
.notice code.temp { font-size: 18px; font-weight: 900; background: #fff; padding: 2px 10px; border-radius: 8px; letter-spacing: 1px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; width: auto; }
.btn.danger { color: #B42318; border-color: #B42318; }
details summary { cursor: pointer; }

.my-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.my-head h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.04em; }
.my-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.my-grid > .auth-card { flex: 1 1 360px; }
.my-grid > .auth-card.full, .auth-main > .auth-card.full { flex-basis: 100%; }
.my-grid > .stack { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.empty { font-size: 15px; color: var(--mute); padding: 24px 0; text-align: center; }

.table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; color: var(--mute); padding: 10px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.tbl td.nowrap { white-space: nowrap; }
.tbl td.msg { min-width: 220px; max-width: 420px; color: var(--ink-2); }
.tbl a { text-decoration: underline; }
.muted { color: #81858F; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--fog); white-space: nowrap; }
.status.s-접수 { background: #FFF1C2; }
.status.s-연락완료, .status.s-진행중 { background: #EFE5FF; }
.status.s-계약 { background: var(--red); color: #fff; }
.status-form select { font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1.5px solid #CCC; border-radius: 10px; background: #fff; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { background: #fff; border-radius: 18px; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.stat span { font-size: 13px; color: var(--mute); font-weight: 600; }
.stat b { font-size: 28px; font-weight: 900; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.tabs { display: flex; gap: 8px; }
.tab { padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; background: #fff; }
.tab.on { background: var(--ink); color: #fff; }
.search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search input { font-family: inherit; font-size: 15px; padding: 10px 14px; border: 1.5px solid #CCC; border-radius: 999px; min-width: 220px; background: #fff; }

/* 태블릿 */
@media (max-width: 1000px) {
  .svc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 36px 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
}

/* 모바일 */
@media (max-width: 760px) {
  .section { padding: 88px 0; }
  .head { margin-bottom: 40px; }
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: none; }
  .nav a.keep:not(.btn) { display: inline; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .feed-phone { width: 260px; height: 500px; border-radius: 40px; padding: 10px; flex-basis: auto; }
  .feed-screen { border-radius: 31px; }
  .reel { height: 480px; }
  @keyframes feed {
    0%, 22%   { transform: translateY(0); }
    33%, 55%  { transform: translateY(-480px); }
    66%, 88%  { transform: translateY(-960px); }
    100%      { transform: translateY(-1440px); }
  }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .plan, .form { padding-left: 24px; padding-right: 24px; }
  .ticket-head { margin: 0 -24px 8px; padding: 22px 24px 20px; }
  .bubble { font-size: 16px; }
  .auth-main { padding: 32px 16px 72px; }
  .auth-card { padding: 28px 22px; }
  .search input { min-width: 0; flex: 1 1 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed-track { animation: none; }
}
