/* =========================================================
   창업AI파트너 — style.css
   Layout: bringpro.kr 구조 / Visual: dabangapp.com 톤 + 로고 컬러
   ========================================================= */

:root {
  /* brand (logo) */
  --blue: #1a66f0;
  --blue-600: #1555d1;
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --teal: #0bb8a8;
  --teal-50: #e7f8f6;
  --navy: #0f1b33;

  /* neutrals */
  --ink: #1f2329;
  --ink-2: #4a5059;
  --ink-3: #868c96;
  --ink-4: #a9aeb6;
  --line: #e5e8ec;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --bg-gray: #f6f7f9;
  --bg-field: #f5f7fa;
  --slate: #4a5677;
  --footer: #363a40;
  --danger: #e5484d;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  --shadow-card: 0 1px 2px rgba(15, 27, 51, .04), 0 8px 24px rgba(15, 27, 51, .06);
  --shadow-pop: 0 24px 64px rgba(15, 27, 51, .22);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --container: 1140px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.emoji { font-family: Tossface, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; line-height: 1; }
.text-blue { color: var(--blue); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.pc-only { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; padding: 0 22px;
  border-radius: 12px;
  font-size: 16px; font-weight: 700;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn--block { width: 100%; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 17px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(26, 102, 240, .22); }
.btn--primary:hover:not(:disabled) { background: var(--blue-600); }
.btn--primary:disabled { background: #e3e6ec; color: #a3a9b4; box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: #cfd4db; color: var(--ink); }
.btn--white { background: #fff; color: var(--blue); box-shadow: 0 10px 24px rgba(6, 30, 90, .25); }
.btn--white:hover { transform: translateY(-1px); }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* dabang 헤더형 작은 버튼 */
.btn-line, .btn-solid {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  font-size: 13px; font-weight: 700; border-radius: 3px; white-space: nowrap;
}
.btn-line { border: 1px solid #d5d8dd; color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink-3); }
.btn-solid { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-solid:hover { background: var(--blue-600); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo img { width: 168px; height: auto; }
.header__nav { margin-left: auto; display: flex; gap: 30px; font-size: 14px; font-weight: 500; color: var(--ink); }
.header__nav a { position: relative; padding: 6px 0; }
.header__nav a:hover { color: var(--blue); }
.header__actions { display: flex; gap: 8px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { background: var(--bg-gray); padding: 64px 0 80px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 456px; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.hero__title {
  margin-top: 22px;
  font-size: 46px; line-height: 1.28; font-weight: 800; letter-spacing: -0.035em; color: var(--navy);
}
.hero__desc { margin-top: 18px; font-size: 17px; color: var(--ink-2); line-height: 1.65; }

.stats {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 520px;
}
.stats li { padding: 16px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stats li + li { border-left: 1px solid var(--line-2); }
.stats strong { font-size: 21px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.stats li:last-child strong { color: var(--teal); }
.stats li > span { font-size: 12.5px; color: var(--ink-3); }

.proof { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.proof b { color: var(--ink); }
.proof__avatars { display: flex; }
.proof__avatars span {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  border: 2px solid var(--bg-gray);
  margin-left: -8px;
}
.proof__avatars span:first-child { margin-left: 0; background: var(--blue); }
.proof__avatars span:nth-child(2) { background: var(--teal); }
.proof__avatars span:nth-child(3) { background: #f2a33a; }
.proof__avatars span:nth-child(4) { background: var(--navy); }

/* ---------- 신청 흐름 공통 (인라인 카드 + 모달) ---------- */
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 30px 30px 28px; box-shadow: var(--shadow-card);
}
.flow-top { display: flex; align-items: flex-start; justify-content: space-between; min-height: 30px; }
.tip {
  position: relative; display: inline-block;
  padding: 5px 11px; border-radius: 5px;
  background: #1f2329; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.tip::after {
  content: ""; position: absolute; left: 30px; bottom: -5px;
  border: 5px solid transparent; border-bottom: 0; border-top-color: #1f2329;
}
.progress { margin-top: 14px; }
.progress__meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #8f9bb0; letter-spacing: .02em; }
.progress__meta b { color: var(--blue); }
.progress__bar { margin-top: 8px; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .35s ease; }

.step__head { margin: 26px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.step__head--center { justify-content: center; text-align: center; }
.step__title { font-size: 25px; line-height: 1.42; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); outline: none; }
.step__hint { flex: none; font-size: 13px; font-weight: 600; color: #8f9bb0; padding-bottom: 4px; }

.opt-grid { display: grid; gap: 8px; }
.opt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  position: relative;
  min-height: 58px; padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 600; color: #39404a; text-align: center; line-height: 1.3;
  transition: border-color .12s, background-color .12s, color .12s;
}
.opt .emoji { font-size: 20px; }
.opt:hover { border-color: #b9c9ea; background: #fafcff; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-50); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.opt-grid--3 .opt { min-height: 58px; font-size: 15px; }
.pop-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; font-style: normal; line-height: 1.6;
}
.more-link {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; margin: 12px 0 14px; padding: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
}
.more-link:hover { color: var(--blue); }
.more-link .emoji { font-size: 11px; }

/* =========================================================
   Sections (dabang 톤)
   ========================================================= */
.section { padding: 96px 0; }
.section--gray { background: var(--bg-gray); }
.section--slate { background: var(--slate); color: #fff; }

.sec-head { margin-bottom: 36px; }
.sec-head--center { text-align: center; }
.sec-head__eyebrow { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.sec-head__title { font-size: 30px; line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.sec-head__title .emoji { font-size: .8em; vertical-align: 2px; }
.sec-head__desc { margin-top: 10px; font-size: 16px; color: var(--ink-3); }

/* ---------- Pain cards (dabang 카테고리 카드형) ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pain-card {
  position: relative; min-height: 210px;
  padding: 24px 22px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pain-card:hover { border-color: #cdd7ea; box-shadow: var(--shadow-card); transform: translateY(-2px); }
.pain-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.pain-card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.pain-card__fix { margin-top: auto; padding-right: 56px; font-size: 13px; font-weight: 700; color: var(--blue); }
.pain-card__icon { position: absolute; right: 18px; bottom: 16px; font-size: 42px; }

/* ---------- 파란 배너 (dabang '우리동네 한눈에 보기'형) ---------- */
.solve-banner {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 18px 26px 34px;
  background: var(--blue); color: #fff; border-radius: 6px;
}
.solve-banner h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.solve-banner p { margin-top: 6px; font-size: 14px; opacity: .85; }
.solve-banner__tiles { display: flex; gap: 8px; flex: none; }
.tile {
  width: 104px; height: 88px; border-radius: 6px; background: #fff; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  transition: transform .15s;
}
.tile:hover { transform: translateY(-2px); }
.tile__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; background: var(--blue-50);
}

/* ---------- How (dabang 분양정보형 다크 섹션) ---------- */
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.sec-row__title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.sec-row__desc { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.sec-row__link { flex: none; font-size: 14px; color: rgba(255, 255, 255, .8); }
.sec-row__link:hover { color: #fff; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card { background: #fff; color: var(--ink); border-radius: 2px; overflow: hidden; }
.how-card__visual {
  position: relative; height: 210px; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; overflow: hidden;
}
.how-card__visual--1 { background: linear-gradient(155deg, #2a74f5 0%, #1449c9 100%); }
.how-card__visual--2 { background: linear-gradient(155deg, #12b7a7 0%, #0c7f91 100%); }
.how-card__visual--3 { background: linear-gradient(155deg, #2b3a63 0%, #141f3d 100%); }
.how-card__visual::before {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.how-card__tags { display: flex; gap: 0; position: relative; }
.tag { padding: 4px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.tag--dark { background: #111; color: #fff; }
.tag--blue { background: rgba(255, 255, 255, .2); color: #fff; }
.how-card__emoji { position: absolute; right: 22px; top: 50%; transform: translateY(-58%); font-size: 64px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .18)); }
.how-card__caption { position: relative; }
.how-card__caption small { display: block; font-size: 12.5px; opacity: .8; }
.how-card__caption strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.how-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px 18px 20px; }
.how-card__meta dt { font-size: 12px; color: var(--ink-4); }
.how-card__meta dd { margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--ink); }
.how-card__meta div:last-child { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line-2); }
.how-card__meta div:last-child dt { display: none; }
.how-card__meta div:last-child dd { margin: 0; color: var(--blue); font-size: 13.5px; font-weight: 700; }
.how-card__meta div:last-child dd::before { content: "✓ "; }

/* ---------- Why (dabang 추천 콘텐츠형) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.why-card {
  position: relative; min-height: 260px;
  padding: 26px 22px 70px;
  background: var(--bg-gray); border-top: 3px solid var(--blue);
  transition: background-color .15s;
}
.why-card:hover { background: #eef2f8; }
.why-card__label {
  display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--blue);
  font-size: 12.5px; font-weight: 700; color: var(--blue);
}
.why-card h3 { margin-top: 16px; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--blue); letter-spacing: -0.02em; }
.why-card p { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.why-card__icon {
  position: absolute; left: 22px; bottom: 22px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--blue-100); background: #fff; font-size: 17px;
}

/* ---------- Promo marquee (dabang 해시태그 칩) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.chip--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Final CTA ---------- */
.cta { background: linear-gradient(135deg, #1a66f0 0%, #1452cc 60%, #0d8fb0 130%); color: #fff; padding: 88px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cta::before { width: 420px; height: 420px; left: -120px; top: -180px; }
.cta::after { width: 360px; height: 360px; right: -100px; bottom: -200px; background: rgba(11, 184, 168, .25); }
.cta__inner { position: relative; z-index: 1; }
.cta h2 { font-size: 34px; line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; }
.cta p { margin-top: 12px; font-size: 16px; opacity: .85; }
.cta .btn { margin-top: 30px; }
.cta__checks { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; opacity: .92; }
.cta__checks li::before { content: "✓"; margin-right: 6px; font-weight: 800; color: #7ff0e4; }

/* =========================================================
   Footer (dabang형)
   ========================================================= */
.footer__links { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.footer__links h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.footer__links li + li { margin-top: 8px; }
.footer__links a, .footer__links button { font-size: 13px; color: var(--ink-3); text-align: left; }
.footer__links a:hover, .footer__links button:hover { color: var(--blue); }
.footer__brand img { width: 140px; height: auto; }
.footer__brand p { margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

.footer__bottom { background: var(--footer); color: #a6abb3; padding: 22px 0 36px; font-size: 12.5px; }
.footer__bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__bar nav { display: flex; flex-wrap: wrap; align-items: center; }
.footer__bar nav > * { padding: 0 14px; line-height: 1; color: #c8ccd2; font-size: 12.5px; }
.footer__bar nav > *:first-child { padding-left: 0; }
.footer__bar nav > * + * { border-left: 1px solid rgba(255, 255, 255, .18); }
.footer__bar b { color: #fff; }
.footer__top { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: #c8ccd2; }
.footer__info { margin-top: 22px; line-height: 1.85; }
.footer__notice { margin-top: 16px; line-height: 1.75; color: #8d939c; }
.footer__end { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 3px; background: #4a4f57; color: #e3e6ea; font-size: 12px; font-weight: 600; }
.fchip:hover { background: #575d66; }
.fchip--blue { background: var(--blue); color: #fff; }
.fchip--blue:hover { background: var(--blue-600); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--footer); display: grid; place-items: center; }
.footer__social svg { width: 20px; height: 20px; }
.footer__social-txt { font-size: 11px; font-weight: 800; letter-spacing: -0.02em; }
.footer__copy { margin-top: 18px; color: #7d838c; font-size: 12px; }

/* =========================================================
   Floating CTA
   ========================================================= */
.floating {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.floating.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating__live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 4px 16px rgba(15, 27, 51, .12);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.floating__live b { color: var(--blue); }
.floating__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(11, 184, 168, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(11, 184, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 184, 168, 0); } }
.floating__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 54px; padding: 0 24px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(26, 102, 240, .38);
  transition: background-color .15s, transform .15s;
}
.floating__btn:hover { background: var(--blue-600); transform: translateY(-1px); }

/* =========================================================
   Modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 30, .55); animation: fadeIn .2s ease; }
.modal__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-pop);
  padding: 32px 34px 28px;
  animation: popIn .25s cubic-bezier(.2, .9, .3, 1.2);
}
.modal__close {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: #f1f3f6; color: var(--ink-2);
}
.modal__close:hover { background: #e6e9ee; }
.modal__body { flex: 1 1 auto; overflow-y: auto; margin: 0 -10px; padding: 0 10px 4px; overscroll-behavior: contain; }
.modal__body .opt-grid { padding-top: 12px; margin-top: -12px; } /* pop-badge 여유 공간 */
.modal__foot { display: grid; grid-template-columns: 140px 1fr; gap: 12px; margin-top: 22px; }
.modal__foot.is-single { grid-template-columns: 1fr; }
.modal__foot .btn { height: 56px; }
#applyNext.is-submit { background: var(--navy); box-shadow: 0 8px 20px rgba(15, 27, 51, .25); }
#applyNext.is-submit:hover:not(:disabled) { background: #1b2a4b; }
#applyNext.is-submit:disabled { background: #e3e6ec; box-shadow: none; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* step 2 : selects */
.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13.5px; font-weight: 700; color: #4b5563; }
.select, .input, .textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.select, .input { height: 50px; padding: 0 16px; font-size: 16px; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.5l4 4 4-4' fill='none' stroke='%234a5059' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.select:invalid { color: #6b7280; }
.select:hover, .input:hover, .textarea:hover { border-color: #cfd5dd; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 102, 240, .12); }
.input::placeholder, .textarea::placeholder { color: #a8adb5; }
.input.is-invalid { border-color: var(--danger); }
.field__error { font-size: 13px; color: var(--danger); }
.form-error { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #fff1f1; color: #c4282d; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* step 4 : count cards */
.count-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; margin-top: -12px; }
.count-card {
  position: relative; padding: 26px 8px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  transition: border-color .12s, background-color .12s;
}
.count-card:hover { border-color: #b9c9ea; }
.count-card strong { font-size: 40px; line-height: 1; font-weight: 800; color: var(--ink); }
.count-card strong small { font-size: 14px; font-weight: 600; margin-left: 3px; color: var(--ink-2); }
.count-card > span { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.count-card[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.count-card[aria-pressed="true"] strong { color: var(--blue); }

.notice { margin-top: 16px; padding: 18px 20px; border-radius: 12px; background: var(--bg-field); }
.notice h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.notice li { position: relative; padding-left: 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.notice li::before { content: "·"; position: absolute; left: 3px; font-weight: 800; }
.notice b { color: var(--ink); }

.agree-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.agree-box--gray { background: var(--bg-field); border-color: transparent; padding: 16px 18px; }
.agree-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; }
.agree-row + .agree-row { border-top: 1px solid var(--line-2); }
.agree-row__link { flex: none; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check i {
  flex: none; width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid #cdd2da; background: #fff;
  display: grid; place-items: center; transition: background-color .12s, border-color .12s;
}
.check input:checked + i { background: var(--blue); border-color: var(--blue); }
.check input:checked + i::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }

/* situation step */
.textarea-wrap { position: relative; }
.textarea { display: block; min-height: 140px; padding: 16px 16px 30px; font-size: 15px; line-height: 1.6; resize: vertical; }
.textarea-count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--ink-4); }
.suggests { margin-top: 14px; display: grid; gap: 8px; }
.suggest {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fc;
  text-align: left; font-size: 14px; color: var(--ink-2);
  transition: border-color .12s, background-color .12s, color .12s;
}
.suggest:hover { border-color: #c4d0e6; }
.suggest.is-on { border-color: var(--blue); background: var(--blue-50); color: var(--blue); font-weight: 600; }

/* done */
.step--done { text-align: center; padding: 16px 0 4px; }
.done__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); box-shadow: 0 0 0 10px var(--blue-50); animation: popIn .4s cubic-bezier(.2, .9, .3, 1.3); }
.done__desc { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.summary { margin-top: 24px; padding: 6px 18px; border-radius: 12px; background: var(--bg-field); text-align: left; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 14px; }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--ink-3); flex: none; }
.summary dd { font-weight: 600; color: var(--ink); text-align: right; }

/* terms */
.modal--terms { z-index: 110; }
.modal--terms .modal__dialog { max-width: 520px; }
.terms__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.terms__head h2 { font-size: 19px; font-weight: 700; }
.terms__body { overflow-y: auto; margin-bottom: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.terms__body h3 { display: none; }
.terms__body p + p, .terms__body table + p, .terms__body p + table { margin-top: 12px; }
.terms__body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.terms__body th, .terms__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.terms__body th { width: 92px; background: var(--bg-field); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* =========================================================
   Reveal animation
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 24px; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; }
  .hero__title { font-size: 40px; }
  .pain-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__links { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { display: none; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__actions { margin-left: auto; }
  .hero { padding: 44px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__copy { text-align: center; }
  .stats { margin-left: auto; margin-right: auto; }
  .proof { justify-content: center; }
  .quick-card { width: 100%; max-width: 520px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .how-card__visual { height: 180px; }
  .solve-banner { flex-direction: column; align-items: stretch; padding: 26px 22px; }
  .solve-banner__tiles .tile { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .container { padding: 0 16px; }
  .pc-only { display: none; }
  .header__logo img { width: 132px; }
  .header__actions .btn-line { display: none; }
  .hero__title { font-size: 31px; }
  .hero__desc { font-size: 15px; }
  .stats li { padding: 13px 4px; }
  .stats strong { font-size: 17px; }
  .stats li > span { font-size: 11.5px; }
  .proof { font-size: 13px; }
  .quick-card { padding: 24px 18px 20px; border-radius: 20px; }
  .step__title { font-size: 21px; }
  .opt { font-size: 13.5px; min-height: 54px; }
  .section { padding: 64px 0; }
  .sec-head__title { font-size: 23px; }
  .sec-head__desc { font-size: 14.5px; }
  .sec-row { flex-direction: column; align-items: flex-start; }
  .sec-row__title { font-size: 23px; }
  .pain-grid, .why-grid { grid-template-columns: 1fr; }
  .pain-card { min-height: 0; }
  .pain-card__fix { margin-top: 16px; }
  .why-card { min-height: 0; }
  .cta { padding: 64px 0 120px; }
  .cta h2 { font-size: 25px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); padding-top: 40px; padding-bottom: 40px; }
  .footer__bottom { padding-bottom: 110px; }

  /* 모바일: 하단 고정 CTA 바 */
  .floating { left: 0; right: 0; bottom: 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 34%); align-items: stretch; gap: 8px; }
  .floating__live { align-self: center; }
  .floating__btn { justify-content: center; border-radius: 12px; height: 54px; }

  /* 모바일: 모달은 바텀시트 */
  .modal { padding: 0; align-items: flex-end; }
  .modal__dialog { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation: sheetUp .3s cubic-bezier(.2, .9, .3, 1); }
  .modal__foot { grid-template-columns: 100px 1fr; gap: 8px; }
  .count-card { padding: 22px 4px 18px; }
  .count-card strong { font-size: 32px; }
  .count-card > span { font-size: 12px; }
  .opt-grid--3 .opt { font-size: 14px; }
  .check { font-size: 14px; }
  .agree-row { padding: 14px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } }
