/* ==========================================================================
   RED SHUTTER FRANCHISE — 가맹점 모집
   디자인 레퍼런스: design_assets/lumalabs (완전 흑백 모노크롬, 풀스크린 다크 히어로,
   알약 CTA, 시맨틱 surface 계층, 다크↔라이트 섹션 교차)
   ========================================================================== */
:root {
  --black: #000;
  --white: #fff;
  --ink: #111;
  --gray-9: #171717;
  --gray-7: #404040;
  --gray-5: #737373;
  --gray-3: #d4d4d4;
  --gray-1: #f5f5f5;
  --red: #b3372f; /* 로고 포인트 한 곳에만 사용 */
  --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

/* 타이포 (lumalabs typo-h1/h2/subhead) */
.h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.subhead { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--gray-5); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* 알약 버튼 (lumalabs pill) */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; padding-inline: 2rem; border-radius: 999px;
  font-weight: 600; font-size: 1.0625rem; line-height: 1;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.pill--white { background: var(--white); color: var(--black); }
.pill--white:hover { background: var(--gray-3); }
.pill--black { background: var(--black); color: var(--white); }
.pill--black:hover { background: var(--gray-7); }
.pill--line { border: 1px solid var(--gray-3); }
.pill--line:hover { border-color: var(--black); }
.pill--line-w { border: 1px solid rgba(255,255,255,0.4); color: var(--white); }
.pill--line-w:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- NAV (lumalabs: 미니멀 UPPERCASE) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white);
  transition: background-color 0.3s;
}
.nav.is-scrolled { background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; width: min(1400px, 100% - 3rem); margin-inline: auto; }
.nav__logo { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.01em; }
.nav__logo em { font-style: normal; color: var(--red); }
.nav__menu { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__menu a { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.nav__menu a:hover { opacity: 1; }
.nav__cta { height: 2.375rem; padding-inline: 1.25rem; font-size: 0.9375rem; }

/* ---------- HERO (lumalabs: 풀스크린 다크 + 저채도 배경 + 중앙 정렬) ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--black); color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.32; filter: grayscale(60%); }
.hero__content { position: relative; z-index: 2; max-width: 720px; padding: 9rem 1.5rem 6rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero__sub { color: rgba(255,255,255,0.72); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 0.5rem; }
.hero__ticker {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: clamp(2rem, 8vw, 6rem);
  padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.875rem; color: rgba(255,255,255,0.75);
}
.hero__ticker b { color: var(--white); font-size: 1.25rem; font-weight: 800; margin-right: 0.375rem; }

/* ---------- 섹션 공통 (container-lg space-y 리듬) ---------- */
.section { padding-block: clamp(5rem, 10vw, 8rem); }
.section--dark { background: var(--black); color: var(--white); }
.section--gray { background: var(--gray-1); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head .subhead { margin-top: 1rem; }
.section--dark .subhead { color: rgba(255,255,255,0.6); }
.kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-5); display: block; margin-bottom: 0.875rem; }
.section--dark .kicker { color: rgba(255,255,255,0.5); }

/* 카드 (lumalabs Careers/Learning Center: 헤어라인 top border + 제목 + 본문) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.card { border-top: 1px solid var(--gray-3); padding-top: 1.5rem; }
.section--dark .card { border-color: rgba(255,255,255,0.2); }
.card h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin-top: 0.625rem; color: var(--gray-5); font-size: 0.9688rem; }
.section--dark .card p { color: rgba(255,255,255,0.6); }
.card ul { margin-top: 0.875rem; display: grid; gap: 0.375rem; }
.card li { font-size: 0.9063rem; color: var(--gray-7); padding-left: 1rem; position: relative; }
.section--dark .card li { color: rgba(255,255,255,0.75); }
.card li::before { content: "—"; position: absolute; left: 0; color: var(--gray-5); }

/* 투자 비용 테이블 (모노 미니멀) */
.invest-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.invest-table th, .invest-table td { text-align: left; padding: 1.125rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.16); }
.invest-table th { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.invest-table td:nth-child(2) { font-weight: 800; font-variant-numeric: tabular-nums; }
.invest-table td:nth-child(3) { color: rgba(255,255,255,0.55); font-size: 0.875rem; }
.invest-table tr.total td { border-bottom: 0; padding-top: 1.5rem; font-size: 1.25rem; font-weight: 800; }
.invest-note { margin-top: 1.25rem; font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

/* 개설 절차 (넘버링 그리드) */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; counter-reset: step; }
.step { border-top: 1px solid var(--gray-3); padding-top: 1.125rem; }
.step .no { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; color: var(--gray-5); }
.step h4 { margin-top: 0.5rem; font-size: 1.0625rem; font-weight: 800; }
.step p { margin-top: 0.25rem; font-size: 0.8438rem; color: var(--gray-5); }

/* 교육 프로그램 + 통계 */
.edu-stats { display: flex; gap: clamp(2rem, 6vw, 5rem); margin-top: 3.5rem; flex-wrap: wrap; }
.edu-stat b { display: block; font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
.edu-stat span { font-size: 0.875rem; color: var(--gray-5); }

/* FAQ */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--gray-3); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.375rem 0; text-align: left; font-size: 1.0625rem; font-weight: 700; }
.faq-q::after { content: "+"; font-size: 1.375rem; font-weight: 400; color: var(--gray-5); transition: transform 0.3s; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 0 1.375rem; color: var(--gray-5); font-size: 0.9688rem; max-width: 68ch; }

/* CTA */
.cta { text-align: center; }
.cta .h1 { max-width: 20ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.cta__contact { margin-top: 1.75rem; font-size: 0.9375rem; color: rgba(255,255,255,0.6); }

/* FOOTER (lumalabs 미니멀) */
.footer { background: var(--white); border-top: 1px solid var(--gray-3); padding: 3.5rem 0 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__logo { font-weight: 800; font-size: 1.25rem; }
.footer__logo em { font-style: normal; color: var(--red); }
.footer__links { display: flex; gap: 1.75rem; font-size: 0.875rem; color: var(--gray-5); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { width: 100%; margin-top: 1.5rem; font-size: 0.8125rem; color: var(--gray-5); }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav__menu { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__ticker { flex-direction: column; gap: 0.75rem; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
