/* =========================================================
   BigSmile Design System — Toss-inspired
   Palette: Toss Blue + clean white / soft gray
   ========================================================= */

:root {
  /* Brand */
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --blue-darker: #1957c2;
  --blue-soft: #e8f3ff;
  --blue-tint: #f4f8ff;

  /* Accents (Toss palette) */
  --red: #f04452;
  --green: #15c47e;
  --yellow: #ffb800;
  --purple: #7b5cff;

  /* Neutral (Toss grayscale) */
  --gray-900: #191f28;
  --gray-800: #333d4b;
  --gray-700: #4e5968;
  --gray-600: #6b7684;
  --gray-500: #8b95a1;
  --gray-400: #b0b8c1;
  --gray-300: #d1d6db;
  --gray-200: #e5e8eb;
  --gray-100: #f2f4f6;
  --gray-50:  #f9fafb;

  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-gray: #f2f4f6;

  --text: #191f28;
  --text-sub: #4e5968;
  --text-mute: #8b95a1;

  /* Radius */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 3px rgba(0, 27, 55, 0.06), 0 1px 2px rgba(0, 27, 55, 0.04);
  --sh-md: 0 4px 16px rgba(0, 27, 55, 0.08);
  --sh-lg: 0 10px 30px rgba(0, 27, 55, 0.10);
  --sh-blue: 0 8px 24px rgba(49, 130, 246, 0.28);

  --maxw: 1120px;
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* display 를 지정한 요소(.drawer, .my-summary, .role-badge 등)에서도
   hidden 속성이 항상 이기도록 한다 — JS 가 hidden 으로 표시를 제어한다. */
[hidden] { display: none !important; }

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

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= Typography ================= */
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
  letter-spacing: 0;
}

h1, h2, h3, h4 { color: var(--text); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }

.display {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--text-sub);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 620px;
  margin: 0 auto 56px;
}

.text-blue { color: var(--blue); }
.text-grad {
  background: linear-gradient(120deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-ghost { background: var(--gray-100); color: var(--gray-800); }
.btn-ghost:hover { background: var(--gray-200); }

.btn-white { background: #fff; color: var(--blue); box-shadow: var(--sh-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ================= Header ================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--gray-200); background: rgba(255, 255, 255, 0.9); }

.nav {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gray-900);
}
.brand .mark {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  display: block;
  box-shadow: var(--sh-blue);
  transition: transform 0.3s var(--ease);
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.06); }
.brand b { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--gray-800); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 24px 24px;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0.35s;
  z-index: 999;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  display: block;
  font-size: 17px; font-weight: 600; color: var(--gray-800);
  padding: 14px 8px;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a.active { color: var(--blue); }
.mobile-menu .btn { margin-top: 18px; }

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 100px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 0%, var(--blue-tint) 0%, rgba(244, 248, 255, 0) 70%),
    #fff;
}
.hero .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.hero .blob.b1 { width: 420px; height: 420px; background: #cfe4ff; top: -120px; left: -80px; }
.hero .blob.b2 { width: 360px; height: 360px; background: #e6dbff; top: -60px; right: -60px; }
.hero .inner { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 22px; }
.hero .lead {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--text-mute); }

/* App-mockup strip under hero */
.hero-badges {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  box-shadow: var(--sh-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---- 히어로 아이콘 월 (실제 배포 앱 아이콘) ---- */
.app-wall {
  position: relative; z-index: 1;
  margin-top: 56px;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.app-wall-track {
  display: flex;
  width: max-content;
  animation: aw-scroll 48s linear infinite;
}
.app-wall:hover .app-wall-track { animation-play-state: paused; }
/* 아이템마다 오른쪽 여백을 줘서 두 벌의 폭이 정확히 같아지도록 한다 (gap 사용 시 반 칸이 어긋남) */
.aw-item {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  margin-right: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--gray-100);
}
.aw-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes aw-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.app-wall-note {
  position: relative; z-index: 1;
  margin-top: 18px; font-size: 13.5px; color: var(--text-mute);
}

/* ================= Sections ================= */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.gray { background: var(--bg-gray); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { text-align: center; padding: 20px 12px; }
.stat .num {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat .label { margin-top: 10px; color: var(--text-sub); font-size: 15px; font-weight: 600; }

/* Card grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  background: var(--blue-soft);
  margin-bottom: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-sub); font-size: 15.5px; }

.card.tinted { background: var(--bg-soft); border-color: var(--gray-100); }

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--blue), #6aa8ff);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.split .visual .emoji { font-size: 96px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15)); }

/* ---- 사진이 들어가는 비주얼 블록 ---- */
.split .visual.photo {
  aspect-ratio: 3 / 2;
  background: var(--gray-100);
  margin: 0;
}
.visual.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.visual.photo:hover img { transform: scale(1.04); }
/* 브랜드 톤을 살짝 얹어 사진이 페이지에서 겉돌지 않게 한다 */
.visual.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(140deg, rgba(49,130,246,0.16), rgba(25,87,194,0.04) 45%, transparent 70%);
}
.visual.photo .photo-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: var(--gray-800);
  font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}

/* ---- 전체 폭 사진 배너 ---- */
.photo-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 320px;
  display: grid;
  align-items: center;
  color: #fff;
  box-shadow: var(--sh-lg);
}
.photo-band > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* 왼쪽(글자 위)은 진하게, 오른쪽으로 갈수록 옅게 — 사진이 보이면서 대비는 확보 */
.photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg,
              rgba(16,63,150,0.93) 0%,
              rgba(27,100,218,0.78) 38%,
              rgba(49,130,246,0.30) 72%,
              rgba(49,130,246,0.10) 100%);
}
.photo-band .band-inner { position: relative; z-index: 2; padding: 56px 48px; max-width: 640px; }
.photo-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.photo-band p { color: rgba(255,255,255,0.92); font-size: 16.5px; margin-bottom: 0; }
@media (max-width: 720px) {
  .photo-band .band-inner { padding: 40px 26px; }
}
.split h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 18px; }
.split p { color: var(--text-sub); font-size: 16.5px; margin-bottom: 14px; }

.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 16px; color: var(--gray-800);
}
.check-list li::before {
  content: "✓";
  flex: 0 0 24px;
  width: 24px; height: 24px;
  background: var(--blue); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  margin-top: 1px;
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
}
.step-card .step-no {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--gray-900); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--text-sub); font-size: 15px; }

/* Tech badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-pill);
  padding: 11px 22px;
  font-weight: 700; font-size: 15px; color: var(--gray-800);
  transition: transform 0.2s var(--ease), color 0.2s, border-color 0.2s;
}
.badge:hover { transform: translateY(-3px); color: var(--blue); border-color: var(--blue); }

/* Testimonials */
.quote-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 30px;
}
.quote-card .stars { color: var(--yellow); margin-bottom: 14px; font-size: 15px; letter-spacing: 2px; }
.quote-card p { color: var(--gray-800); font-size: 16px; margin-bottom: 22px; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-weight: 800;
}
.quote-card .who b { display: block; font-size: 15px; }
.quote-card .who span { font-size: 13px; color: var(--text-mute); }

/* CTA banner */
.cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: var(--r-xl);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
/* 사진을 깐 CTA — 파란 그라데이션 아래에 사진이 은은하게 비친다 */
.cta-photo > .cta-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.85);
}
.cta-photo::before {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(115deg, rgba(21,73,168,0.86), rgba(27,100,218,0.72));
}
.cta h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 30px; }

/* ================= Page hero (inner pages) ================= */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, var(--blue-tint), rgba(244,248,255,0) 70%),
    #fff;
}
/* 내부 페이지 히어로에도 히어로와 같은 결의 은은한 장식을 얹는다 */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before,
.page-hero::after {
  content: ""; position: absolute; z-index: 0;
  border-radius: 50%; filter: blur(70px); opacity: 0.42; pointer-events: none;
}
.page-hero::before { width: 380px; height: 380px; background: #cfe4ff; top: -150px; left: -110px; }
.page-hero::after  { width: 320px; height: 320px; background: #e6dbff; top: -110px; right: -90px; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 16px; }
.page-hero p { color: var(--text-sub); font-size: clamp(15px, 2vw, 19px); max-width: 620px; margin: 0 auto; }

/* ================= Article (policy / terms) ================= */
.article {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 56px;
}
.article .meta { color: var(--text-mute); font-size: 14px; margin-bottom: 28px; }
.article h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  padding-top: 8px;
}
.article h2:first-of-type { margin-top: 0; }
.article h3 { font-size: 18px; margin: 24px 0 10px; color: var(--gray-800); }
.article p { color: var(--text-sub); margin-bottom: 14px; font-size: 16px; }
.article ul, .article ol { margin: 0 0 18px 20px; color: var(--text-sub); }
.article li { margin-bottom: 9px; font-size: 16px; }
.article strong { color: var(--gray-900); }
.article a { color: var(--blue); font-weight: 600; }
.article .callout {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  color: var(--gray-800);
}
.article .callout.warn { background: #fff2f3; border-left-color: var(--red); }
.article .contact-block {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

/* ================= FAQ ================= */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open { border-color: var(--blue); box-shadow: var(--sh-md); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  font-size: 17px; font-weight: 700; color: var(--gray-900);
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus {
  flex: 0 0 24px; width: 24px; height: 24px;
  position: relative; transition: transform 0.3s var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--blue); border-radius: 2px;
}
.faq-q .plus::before { top: 11px; left: 3px; right: 3px; height: 2px; }
.faq-q .plus::after { left: 11px; top: 3px; bottom: 3px; width: 2px; transition: transform 0.3s var(--ease); }
.faq-item.open .plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 24px 24px; color: var(--text-sub); font-size: 15.5px; }
.faq-a-inner ul, .faq-a-inner ol { margin: 10px 0 10px 20px; }
.faq-a-inner li { margin-bottom: 7px; }

/* ================= Contact ================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 34px;
}
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.info-row:last-child { border-bottom: none; }
.info-row .ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); display: grid; place-items: center; font-size: 20px;
}
.info-row b { display: block; font-size: 14px; color: var(--text-mute); font-weight: 600; margin-bottom: 3px; }
.info-row p { font-size: 15.5px; color: var(--gray-800); }

.form-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--sh-md);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.form-control {
  width: 100%;
  font-family: inherit; font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  color: var(--gray-900);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.12);
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* ================= Team ================= */
.team-card {
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 28px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.team-card .avatar {
  width: 80px; height: 80px; border-radius: 24px; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), #6aa8ff);
}
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card .role { color: var(--blue); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.team-card p { color: var(--text-sub); font-size: 14.5px; }

/* ================= Footer ================= */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: var(--gray-400); font-size: 14.5px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--gray-400); font-size: 14.5px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }
.footer-col .line { display: block; color: var(--gray-400); font-size: 14px; padding: 6px 0; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--gray-500); font-size: 13.5px;
}

/* ================= Scroll reveal ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Scroll progress bar */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  z-index: 1100; transition: width 0.1s linear;
}

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split .visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-cta .btn { display: none; }
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .article { padding: 32px 22px; }
  .cta { padding: 48px 24px; }
  .container { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ================= Portfolio ================= */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.pf-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-tile {
  position: relative; overflow: hidden;
  flex: 0 0 52px; width: 52px; height: 52px;
  border-radius: 15px; color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  box-shadow: var(--sh-md);
}
/* 실제 스토어 아이콘 — 실패 시 제거되어 아래 이니셜 타일이 드러난다 */
.pf-tile .pf-ico {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #fff;
}
.pf-card:hover .pf-tile .pf-ico { transform: scale(1.06); }
.pf-tile .pf-ico { transition: transform 0.3s var(--ease); }
.pf-name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.pf-tag {
  display: inline-block; margin-top: 4px;
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); padding: 3px 10px; border-radius: var(--r-pill);
}
.pf-desc { color: var(--text-sub); font-size: 14.5px; flex: 1; margin-bottom: 16px; }
.pf-link { color: var(--blue); font-weight: 700; font-size: 14.5px; }
.pf-link:hover { color: var(--blue-dark); }

.pf-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.pf-tabs button {
  font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  padding: 10px 22px; border-radius: var(--r-pill);
  border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600);
  transition: all 0.2s var(--ease);
}
.pf-tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pf-tabs button:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

/* ================= How it works (5:5) ================= */
.hiw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: hiw; }
.hiw-card {
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 30px 26px; position: relative;
}
.hiw-card .hiw-no {
  font-size: 15px; font-weight: 800; color: var(--blue);
  background: var(--blue-soft); width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.hiw-card .emoji { font-size: 30px; margin-bottom: 12px; }
.hiw-card h3 { font-size: 18px; margin-bottom: 8px; }
.hiw-card p { color: var(--text-sub); font-size: 14.5px; }

/* Split 5:5 visual */
.share-visual {
  display: flex; align-items: stretch; border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-lg); min-height: 260px;
}
.share-half {
  flex: 1; display: grid; place-items: center; text-align: center; color: #fff; padding: 30px;
}
.share-half.you { background: linear-gradient(135deg,#7b5cff,#a98bff); }
.share-half.us { background: linear-gradient(135deg,var(--blue),var(--blue-dark)); }
.share-half .big { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; }
.share-half .cap { font-size: 15px; opacity: 0.92; margin-top: 6px; font-weight: 600; }
.share-half .emoji { font-size: 40px; margin-bottom: 10px; }

/* ================= Idea submit + agreement + signature ================= */
.submit-wrap { max-width: 860px; margin: 0 auto; }
.panel {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-md);
  margin-bottom: 24px;
}
.panel > h2 {
  font-size: 20px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.panel .step-badge {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
}
.panel .panel-sub { color: var(--text-mute); font-size: 14.5px; margin-bottom: 22px; }

.agreement {
  background: var(--bg-soft);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 24px 26px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}
.agreement h3 { font-size: 15px; color: var(--gray-900); margin: 18px 0 6px; }
.agreement h3:first-child { margin-top: 0; }
.agreement p, .agreement li { margin-bottom: 6px; }
.agreement ul, .agreement ol { margin-left: 18px; }
.agreement strong { color: var(--gray-900); }

.agree-check {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 18px; padding: 16px 18px;
  background: var(--blue-soft); border-radius: var(--r-sm);
  cursor: pointer; font-size: 15px; font-weight: 600; color: var(--gray-800);
}
.agree-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex: 0 0 20px; }

.sign-pad-wrap { position: relative; }
.sign-pad {
  width: 100%; height: 200px;
  border: 2px dashed var(--gray-300); border-radius: var(--r-md);
  background: #fff; touch-action: none; display: block; cursor: crosshair;
}
.sign-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: var(--gray-400); font-size: 15px; pointer-events: none;
}
.sign-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.link-btn { background: none; border: none; color: var(--gray-500); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--red); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Result / signed doc */
.signed-doc {
  border: 1px solid var(--gray-200); border-radius: var(--r-md);
  padding: 30px; background: #fff;
}
.signed-doc .row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 15px; }
.signed-doc .row b { flex: 0 0 130px; color: var(--text-mute); font-weight: 600; }
.signed-doc .sig-img { max-width: 260px; border: 1px solid var(--gray-200); border-radius: 8px; margin-top: 8px; }
.badge-ok {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e7f9f1; color: #0f9d63; font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 20px;
}

@media (max-width: 960px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pf-grid { grid-template-columns: 1fr; }
  .hiw { grid-template-columns: 1fr; }
  .share-visual { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
  .signed-doc .row { flex-direction: column; gap: 2px; }
  .signed-doc .row b { flex: none; }
}

/* Print — signed agreement only */
@media print {
  .site-header, .mobile-menu, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2 — 다국어 · 로그인 · 진행상황 · 관리자
   ========================================================= */

/* ---------- 접근성 ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--blue); color: #fff; font-weight: 700;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid rgba(49, 130, 246, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 버튼 변형 ---------- */
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }

.btn-quiet {
  background: transparent; color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  padding: 9px 18px; font-size: 15px;
}
.btn-quiet:hover { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-900); }

.btn-google {
  background: #fff; color: var(--gray-800);
  border: 1.5px solid var(--gray-300);
  box-shadow: var(--sh-sm);
}
.btn-google:hover { background: var(--gray-50); border-color: var(--gray-400); transform: translateY(-1px); }
.btn-google svg { flex: 0 0 20px; }

.btn-danger-ghost {
  background: #fff2f3; color: var(--red);
  border: 1.5px solid #ffd7db;
}
.btn-danger-ghost:hover { background: #ffe3e6; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: bs-spin 0.7s linear infinite;
  color: #fff;
}
.btn-ghost.is-loading::after, .btn-google.is-loading::after { color: var(--gray-700); }
@keyframes bs-spin { to { transform: rotate(360deg); } }

.inline-link { color: var(--blue); font-weight: 600; }
.inline-link:hover { color: var(--blue-dark); text-decoration: underline; }

/* ---------- 언어 선택기 ---------- */
.lang-switch { position: relative; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--gray-700); background: transparent;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-pill);
  padding: 7px 12px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-900); }
.lang-globe { flex: 0 0 18px; opacity: 0.75; }
.lang-caret { flex: 0 0 10px; opacity: 0.6; transition: transform 0.2s var(--ease); }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 190px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 1200;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }

.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--gray-800);
}
.lang-item:hover { background: var(--gray-100); }
.lang-item.active { color: var(--blue); background: var(--blue-soft); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-name { flex: 1; }
.lang-check { opacity: 0; font-weight: 800; }
.lang-item.active .lang-check { opacity: 1; }

/* 언어 제안 배너 */
.lang-hint {
  position: fixed; left: 50%; bottom: 20px; z-index: 1300;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--gray-900); color: #fff;
  padding: 12px 16px; border-radius: var(--r-pill);
  box-shadow: var(--sh-lg); font-size: 14.5px; font-weight: 600;
  opacity: 0; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: calc(100vw - 32px);
}
.lang-hint.in { opacity: 1; transform: translate(-50%, 0); }
.lang-hint-yes {
  background: var(--blue); color: #fff;
  padding: 6px 14px; border-radius: var(--r-pill); font-weight: 700;
}
.lang-hint-yes:hover { background: var(--blue-dark); }
.lang-hint-no {
  background: transparent; border: none; color: var(--gray-400);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang-hint-no:hover { color: #fff; }

/* ---------- 헤더 로그인 영역 ---------- */
.auth-slot { display: flex; align-items: center; min-height: 34px; }

.auth-skeleton {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100);
  animation: bs-pulse 1.4s ease-in-out infinite;
}
@keyframes bs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.user-menu { position: relative; }
.user-btn {
  display: block; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 50%; line-height: 0;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 2px solid var(--gray-200);
  transition: border-color 0.2s;
}
.user-btn:hover .user-avatar { border-color: var(--blue); }
.user-avatar-fallback {
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  font-weight: 800; font-size: 14px;
}

.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 232px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 1200;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.user-dropdown a,
.user-dropdown button {
  display: block; width: 100%; text-align: left;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--gray-800);
  padding: 10px 12px; border-radius: 10px;
  background: none; border: none; cursor: pointer;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--gray-100); }
.user-dropdown .is-admin-link { color: var(--purple); }

.user-menu-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--gray-100);
}
.user-menu-head .user-avatar { width: 40px; height: 40px; }
.user-menu-head b { display: block; font-size: 14.5px; }
.user-menu-head span {
  display: block; font-size: 12.5px; color: var(--text-mute);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mobile-auth { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gray-100); }
.mobile-auth-user {
  display: flex; align-items: center; gap: 10px; padding: 12px 8px;
}
.mobile-auth-user b { display: block; font-size: 15px; }
.mobile-auth-user span { display: block; font-size: 13px; color: var(--text-mute); }
.mobile-auth-link {
  display: block; font-size: 16px; font-weight: 600; color: var(--gray-800);
  padding: 13px 8px; border-bottom: 1px solid var(--gray-100);
}
.mobile-auth-link.as-button {
  width: 100%; text-align: left; background: none; border: none;
  font-family: inherit; cursor: pointer;
}

/* ---------- 폼 공통 ---------- */
.opt { color: var(--gray-400); font-weight: 500; }

.field-hint {
  display: block; margin-top: 6px;
  font-size: 13px; color: var(--text-mute); font-weight: 500;
}

.form-note {
  display: none; margin-top: 14px; text-align: center;
  font-size: 14.5px; font-weight: 600;
}
.form-note.show { display: block; }
.form-note.is-ok { color: var(--green); }
.form-note.is-error { color: var(--red); }

.submit-error {
  display: none; margin-bottom: 14px; text-align: center;
  color: var(--red); font-weight: 600; font-size: 14.5px;
}
.submit-error.show { display: block; }

.submit-foot {
  text-align: center; color: var(--text-mute);
  font-size: 13px; margin-top: 14px;
}

.agree-check.subtle { background: var(--gray-50); margin-top: 10px; font-weight: 500; }

.danger-zone {
  margin-top: 40px; padding: 26px;
  border: 1px solid #ffd7db; border-radius: var(--r-lg);
  background: #fffafa;
}
.danger-zone h3 { font-size: 16px; color: var(--red); margin-bottom: 6px; }
.danger-zone p { font-size: 14px; color: var(--text-sub); margin-bottom: 16px; }
.danger-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 로그인 / 게이트 ---------- */
.auth-section { padding-top: calc(var(--header-h) + 72px); }

.auth-card {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-xl); padding: 48px 36px;
  box-shadow: var(--sh-md);
}
.auth-mark { margin-bottom: 22px; display: flex; justify-content: center; }
.auth-mark svg { border-radius: 15px; box-shadow: var(--sh-blue); }
.auth-card h1 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 12px; }
.auth-lead { color: var(--text-sub); font-size: 15.5px; margin-bottom: 28px; }
.auth-error { display: block; color: var(--red); font-weight: 600; font-size: 14px; margin-top: 14px; }
.auth-consent { color: var(--text-mute); font-size: 12.5px; margin-top: 22px; line-height: 1.6; }

.auth-benefits {
  text-align: left; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.auth-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--gray-700); margin-bottom: 12px;
}
.auth-benefits li::before {
  content: "✓"; flex: 0 0 20px; width: 20px; height: 20px;
  background: var(--blue-soft); color: var(--blue);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; margin-top: 2px;
}

.auth-gate { text-align: center; }
.auth-gate .gate-icon { font-size: 42px; margin-bottom: 14px; }
.auth-gate h2 { display: block; font-size: 22px; margin-bottom: 10px; }
.auth-gate .btn { max-width: 360px; margin: 20px auto 0; }
.gate-list { text-align: left; max-width: 420px; margin: 22px auto 0; }
.gate-note { color: var(--text-mute); font-size: 12.5px; margin-top: 16px; }

.page-hero.compact { padding: calc(var(--header-h) + 48px) 0 36px; }

.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; background: var(--gray-100);
  border: 3px solid var(--gray-100);
}
.profile-head b { display: block; font-size: 18px; }
.profile-head span { display: block; font-size: 14px; color: var(--text-mute); }

.role-badge {
  display: inline-block; margin-top: 6px;
  background: #f3efff; color: var(--purple);
  font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: var(--r-pill);
}
.role-badge.sm { font-size: 11px; padding: 2px 8px; margin: 0; }

.signed-as {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-tint); border: 1px solid var(--blue-soft);
  border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 20px;
  font-size: 14px; font-weight: 600; color: var(--gray-700);
}
.signed-as-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex: 0 0 8px;
}

/* ---------- 첨부파일 ---------- */
.file-drop {
  position: relative; border: 2px dashed var(--gray-300);
  border-radius: var(--r-md); background: var(--bg-soft);
  padding: 26px 18px; text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop.is-over { border-color: var(--blue); background: var(--blue-tint); }
.file-drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.file-drop-label { color: var(--text-mute); font-size: 14.5px; font-weight: 600; }

.file-list { margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
  font-size: 14px;
}
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.file-name { color: var(--blue); font-weight: 600; }
.file-size { color: var(--text-mute); font-size: 13px; }
.file-remove {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 15px; line-height: 1; padding: 2px 4px;
}
.file-remove:hover { color: var(--red); }
.file-list.readonly .file-item { background: #fff; }

.upload-progress { margin-bottom: 16px; }
.upload-bar {
  height: 8px; background: var(--gray-100);
  border-radius: var(--r-pill); overflow: hidden;
}
.upload-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.25s var(--ease);
}
.upload-progress p {
  margin-top: 8px; text-align: center;
  font-size: 13px; color: var(--text-mute); font-weight: 600;
}

.sign-date { font-size: 13.5px; color: var(--text-mute); }
.save-status { font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.save-status.is-ok { color: var(--green); }
.save-status.is-error { color: var(--red); }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- 진행 레일 ---------- */
.track-preview { max-width: 780px; margin: 0 auto; }

.track-rail {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; counter-reset: rail; gap: 4px;
}
.track-rail::before {
  content: ""; position: absolute; top: 9px; left: 6%; right: 6%;
  height: 2px; background: var(--gray-200); z-index: 0;
}
.track-node {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.tn-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gray-300);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.track-node.done .tn-dot { background: var(--blue); border-color: var(--blue); }
.track-node.current .tn-dot {
  background: #fff; border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(49, 130, 246, 0.18);
  transform: scale(1.15);
}
.tn-label {
  font-size: 13px; font-weight: 700; color: var(--text-mute);
  line-height: 1.35;
}
.track-node.done .tn-label, .track-node.current .tn-label { color: var(--gray-900); }

.rail-terminal {
  display: flex; flex-direction: column; gap: 4px;
  border-left: 4px solid var(--chip, var(--gray-400));
  background: var(--gray-50); border-radius: 12px;
  padding: 16px 20px; margin-top: 4px;
}
.rail-terminal b { color: var(--chip, var(--gray-700)); font-size: 16px; }
.rail-terminal span { font-size: 14px; color: var(--text-sub); }

/* 진행 단계 범례 */
.legend-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 940px; margin: 0 auto;
}
.legend-item {
  display: grid; grid-template-columns: 14px 1fr; gap: 6px 12px;
  align-items: start;
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--r-md); padding: 18px 20px;
}
.legend-dot {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 5px;
  grid-row: span 2;
}
.legend-item b { font-size: 15px; }
.legend-item span { font-size: 13.5px; color: var(--text-sub); line-height: 1.55; }

.legend-box {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}
.legend-box h3 {
  font-size: 18px; text-align: center; margin-bottom: 24px;
}

/* ---------- 내 아이디어 ---------- */
.my-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.sum-tile {
  background: var(--bg-soft); border: 1px solid var(--gray-100);
  border-radius: var(--r-md); padding: 22px; text-align: center;
}
.sum-tile b {
  display: block; font-size: 32px; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.sum-tile span { display: block; margin-top: 8px; font-size: 14px; color: var(--text-sub); font-weight: 600; }

.idea-list { display: grid; gap: 16px; }

.idea-card {
  display: block; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 26px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.idea-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: transparent; }
.idea-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 10px;
}
.idea-card-top h3 { font-size: 18px; line-height: 1.35; }
.idea-desc { color: var(--text-sub); font-size: 14.5px; margin-bottom: 16px; }

.status-chip {
  flex: 0 0 auto;
  display: inline-block; white-space: nowrap;
  /* color-mix 미지원 브라우저용 기본값 */
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
  font-size: 12.5px; font-weight: 800;
  padding: 5px 12px; border-radius: var(--r-pill);
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .status-chip {
    background: color-mix(in srgb, var(--chip) 12%, #fff);
    color: var(--chip);
    border-color: color-mix(in srgb, var(--chip) 30%, #fff);
  }
}
.status-chip.lg { font-size: 14px; padding: 7px 16px; }
.status-chip.sm { font-size: 11.5px; padding: 3px 9px; }

.idea-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.idea-bar {
  flex: 1; height: 8px; background: var(--gray-100);
  border-radius: var(--r-pill); overflow: hidden;
}
.idea-bar.lg { height: 12px; }
.idea-bar span {
  display: block; height: 100%; border-radius: var(--r-pill);
  transition: width 0.5s var(--ease);
}
.idea-pct { font-size: 13px; font-weight: 800; color: var(--gray-600); min-width: 38px; text-align: right; }

.idea-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-mute);
  padding-top: 14px; border-top: 1px solid var(--gray-100);
}
.idea-more { color: var(--blue); font-weight: 700; }

.idea-note {
  background: var(--blue-tint); border-left: 3px solid var(--blue);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 14px;
  font-size: 14px; color: var(--gray-800);
}
.idea-note b { display: block; font-size: 12.5px; color: var(--blue); margin-bottom: 4px; }
.idea-note.big { padding: 18px 22px; margin: 24px 0 0; font-size: 15px; }

/* ---------- 상세 · 타임라인 ---------- */
.detail-section { padding-top: calc(var(--header-h) + 48px); }

.back-link {
  display: inline-block; margin-bottom: 20px;
  font-size: 14.5px; font-weight: 600; color: var(--gray-600);
}
.back-link:hover { color: var(--blue); }

.detail-head { margin-bottom: 24px; }
.detail-head h1 { font-size: clamp(24px, 4vw, 34px); margin: 14px 0 10px; }
.detail-sub { color: var(--text-mute); font-size: 14px; }

.detail-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.detail-progress b { font-size: 18px; font-weight: 800; color: var(--gray-800); min-width: 52px; text-align: right; }

.track-rail.full { margin-top: 10px; }

.detail-block { margin-bottom: 22px; }
.detail-block:last-child { margin-bottom: 0; }
.detail-block h3 {
  font-size: 13px; font-weight: 700; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.detail-desc { white-space: pre-wrap; color: var(--gray-800); font-size: 15.5px; line-height: 1.75; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--gray-200);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -26px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 2px var(--gray-200);
}
.tl-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.tl-head b { font-size: 15.5px; }
.tl-head time { font-size: 13px; color: var(--text-mute); }
.tl-body p { color: var(--text-sub); font-size: 14.5px; white-space: pre-wrap; }

/* ---------- 빈 상태 · 로딩 ---------- */
.empty-state {
  text-align: center; padding: 60px 24px;
  background: var(--bg-soft); border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
}
.empty-emoji { font-size: 52px; margin-bottom: 16px; }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; }
.empty-state p { color: var(--text-sub); font-size: 15.5px; margin-bottom: 26px; }

.loading-block { text-align: center; padding: 70px 20px; }
.loading-block p { margin-top: 16px; color: var(--text-mute); font-size: 14.5px; }
.spinner {
  display: inline-block; width: 30px; height: 30px;
  border: 3px solid var(--gray-200); border-top-color: var(--blue);
  border-radius: 50%; animation: bs-spin 0.8s linear infinite;
}

.error-panel { text-align: center; color: var(--red); font-weight: 600; }

/* ---------- 404 ---------- */
.notfound-section { padding: calc(var(--header-h) + 80px) 0 100px; }
.notfound-box { text-align: center; max-width: 520px; margin: 0 auto; }
.notfound-emoji { font-size: 64px; }
.notfound-code {
  font-size: 72px; font-weight: 800; color: var(--blue);
  letter-spacing: -0.05em; line-height: 1; margin: 8px 0 16px;
}
.notfound-box h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 14px; }
.notfound-box p { color: var(--text-sub); font-size: 16px; margin-bottom: 30px; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   관리자 콘솔
   ========================================================= */
.admin-section { padding-top: calc(var(--header-h) + 40px); }
.admin-container { max-width: 1320px; }

.admin-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.admin-head h1 { font-size: 28px; }
.admin-head p { color: var(--text-mute); font-size: 14px; margin-top: 6px; }
.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  margin-bottom: 32px;
}
.astat {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 18px 20px;
}
.astat b { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.astat span { display: block; margin-top: 8px; font-size: 13px; color: var(--text-mute); font-weight: 600; }

.admin-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200); margin-bottom: 22px;
}
.admin-tabs button {
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  background: none; border: none; color: var(--gray-500);
  padding: 12px 18px; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tabs button:hover { color: var(--gray-800); }
.admin-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-count {
  display: inline-block; background: var(--gray-100); color: var(--gray-600);
  font-size: 12px; font-weight: 800; padding: 1px 8px;
  border-radius: var(--r-pill); margin-left: 4px;
}
.admin-tabs button.active .tab-count { background: var(--blue-soft); color: var(--blue); }

.admin-toolbar {
  display: grid; grid-template-columns: 1fr 200px 200px; gap: 12px;
  margin-bottom: 18px;
}
.admin-toolbar .form-control { padding: 11px 14px; font-size: 14.5px; }

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200); border-radius: var(--r-md);
  background: #fff;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.admin-table th {
  text-align: left; font-size: 12.5px; font-weight: 700;
  color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.03em;
  padding: 14px 16px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
.admin-table td {
  padding: 14px 16px; font-size: 14px; color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100); vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--gray-50); }
.col-title { max-width: 340px; }
.col-title b { display: block; font-size: 14.5px; }
.col-sub {
  display: block; margin-top: 3px;
  font-size: 12.5px; color: var(--text-mute); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-bar {
  width: 76px; height: 6px; background: var(--gray-100);
  border-radius: var(--r-pill); overflow: hidden;
}
.mini-bar span { display: block; height: 100%; }

.admin-empty { text-align: center; color: var(--text-mute); padding: 44px 20px; font-size: 15px; }

.tag-legacy, .tag-done, .tag-todo {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: var(--r-pill);
}
.tag-legacy { background: var(--gray-100); color: var(--gray-600); }
.tag-done { background: #e7f9f1; color: #0f9d63; }
.tag-todo { background: #fff4e5; color: #b26a00; }

/* 드로어 */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(25, 31, 40, 0.4);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1500;
  width: min(560px, 100vw);
  background: var(--bg-soft);
  box-shadow: -8px 0 30px rgba(0, 27, 55, 0.16);
  display: flex; flex-direction: column;
  animation: bs-slide-in 0.28s var(--ease);
}
@keyframes bs-slide-in { from { transform: translateX(100%); } to { transform: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px;
  background: #fff; border-bottom: 1px solid var(--gray-200);
}
.drawer-head h2 { font-size: 18px; line-height: 1.4; }
.drawer-close {
  flex: 0 0 36px; width: 36px; height: 36px;
  border: none; background: var(--gray-100); border-radius: 10px;
  cursor: pointer; font-size: 15px; color: var(--gray-600);
}
.drawer-close:hover { background: var(--gray-200); color: var(--gray-900); }

.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }

.dr-section {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 22px; margin-bottom: 16px;
}
.dr-section h3 { font-size: 15px; margin-bottom: 16px; }
.dr-section.danger { border-color: #ffd7db; background: #fffafa; }
.dr-section.danger h3 { color: var(--red); }

.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.dr-grid label, .dr-field {
  display: block; font-size: 13px; font-weight: 700; color: var(--gray-700);
}
.dr-grid label .form-control, .dr-field .form-control { margin-top: 7px; font-size: 14.5px; }
.dr-field { margin-bottom: 16px; }
.dr-field textarea.form-control { min-height: 84px; }
#drProgress { width: 100%; margin-top: 14px; accent-color: var(--blue); }
#drPctLabel { color: var(--blue); }

.dr-row {
  display: flex; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--gray-100); font-size: 14px;
}
.dr-row:last-child { border-bottom: none; }
.dr-row b { flex: 0 0 100px; color: var(--text-mute); font-weight: 600; }
.dr-row span { flex: 1; word-break: break-word; }
.dr-desc { white-space: pre-wrap; font-size: 14.5px; color: var(--gray-800); line-height: 1.7; }

body.drawer-open { overflow: hidden; }

/* ---------- 반응형 ---------- */

/* 언어마다 메뉴 길이가 달라(스페인어·일본어 등) 헤더가 붐빌 수 있다.
   브랜드·메뉴·우측 버튼이 서로 붙지 않도록 여백을 확보하고 단계적으로 줄인다. */
.nav { gap: 16px; }
.nav-links { flex: 0 1 auto; min-width: 0; }
.nav-links a { white-space: nowrap; }

@media (max-width: 1240px) {
  .nav-links a { padding: 8px 10px; font-size: 14.5px; }
  .nav-cta .btn { padding: 9px 16px; font-size: 14.5px; }
  .lang-btn { padding: 7px 10px; font-size: 13.5px; }
}

@media (max-width: 1080px) {
  /* 언어 선택기와 로그인을 우선하고 제안 버튼은 감춘다 (본문에 CTA가 여러 개 있다) */
  .nav-cta .nav-submit { display: none; }
}

/* 어떤 언어에서도 메뉴가 겹치지 않도록 넉넉한 폭에서 햄버거로 전환한다 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .legend-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-toolbar { grid-template-columns: 1fr; }
  .dr-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* 언어 선택기는 모바일에서도 헤더에 남긴다 (요청: 우측 상단 수동 전환) */
  .nav-cta .nav-submit { display: none; }
  .lang-btn { padding: 7px 10px; }
  .lang-btn-label { display: none; }
  .nav-cta { gap: 8px; }

  .my-summary { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sum-tile { padding: 16px 10px; }
  .sum-tile b { font-size: 24px; }
  .sum-tile span { font-size: 12px; }

  .legend-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 36px 24px; }

  .track-rail { flex-wrap: wrap; gap: 18px 4px; }
  .track-rail::before { display: none; }
  .track-node { flex: 0 0 30%; }
  .tn-label { font-size: 12px; }

  .idea-card { padding: 22px 20px; }
  .idea-card-top { flex-direction: column; gap: 8px; }

  .drawer { width: 100vw; }
  .dr-row { flex-direction: column; gap: 2px; }
  .dr-row b { flex: none; }
}

/* 인쇄 시 새 UI 요소도 감춘다 */
@media print {
  .lang-switch, .auth-slot, .lang-hint, .skip-link,
  .drawer, .drawer-backdrop, .admin-tabs, .admin-toolbar { display: none !important; }
}

/* =========================================================
   Google 번역 API 발급 가이드 (googleApi.html)
   ========================================================= */

.guide-steps { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }

.guide-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 30px 32px;
}

.guide-card .n {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #6aa8ff);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
}

.guide-card h2 { font-size: 21px; margin-bottom: 10px; }
.guide-card p { color: var(--text-sub); margin-bottom: 12px; }
/* 전역에서 ul { list-style: none } 으로 리셋되어 있어 여기서 되살립니다.
   절차 안내는 글머리표가 있어야 항목 구분이 됩니다. */
.guide-card ol, .guide-card ul, .note-top ul { margin: 0 0 4px 20px; color: var(--text-sub); }
.guide-card ul, .note-top ul { list-style: disc; }
.guide-card ol { list-style: decimal; }
.guide-card li { margin-bottom: 8px; }
.guide-card a:not(.pill) { color: var(--blue); font-weight: 600; }

.guide-card .pill {
  display: inline-block; background: var(--blue); color: #fff;
  font-weight: 700; padding: 4px 14px;
  border-radius: var(--r-pill); font-size: 14px;
}

.guide-card .note, .note-top {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 14px;
}

.note-top { max-width: 860px; margin: 0 auto 28px; }
.guide-card .note h3, .note-top h3 { font-size: 15px; margin-bottom: 6px; color: var(--gray-900); }
.guide-card .note p, .guide-card .note li,
.note-top p, .note-top li { font-size: 14.5px; color: var(--text-sub); }
.note-top ul { margin: 8px 0 0 20px; }
.note-top p:last-child, .guide-card .note p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .guide-card { padding: 24px 20px; }
  .guide-card h2 { font-size: 19px; }
}
