/* ──────────────────────────────────────────────────────────────
   biz-landing-1 — 사업자 무이자 대출 상담

   한비즈(krbizcc.co.kr)의 디자인 언어를 따랐다.
   흰 바탕 + 연하늘 톤 + 파란 CTA, Pretendard, 둥근 카드와 알약 배지,
   중앙 정렬, 타사/자사 비교 카드.

   포인트 색은 파랑 하나다. 빨강은 상단 바의 "무이자" 배지에만 쓴다.
─────────────────────────────────────────────────────────────── */

:root {
  --blue: #006bf9;       /* CTA · 강조 */
  --blue-hover: #0059d6;
  --blue-2: #008af1;     /* 강조 텍스트 */
  --blue-pale: #d6ecfd;  /* 배지 · 아이콘 바탕 */
  --blue-bg: #eaf4ff;    /* 히어로 */
  --blue-soft: #f5faff;  /* 표 머리 · 신청 배경 */
  --red: #f62145;

  --ink: #374147;        /* 제목 */
  --ink-2: #454f5b;      /* 본문 */
  --ink-3: #5c6b75;      /* 보조 */
  --ink-4: #798994;      /* 흐린 글 */
  --line: #eaeef3;
  --surface: #ffffff;
  --bg: #f9fafb;
  --dark: #18181c;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", system-ui, "Malgun Gothic", sans-serif;

  --r-card: 20px;
  --r-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.66;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 560px;
}

/* 넓은 화면에서만 줄바꿈하는 <br> */
.br-pc {
  display: none;
}

/* ── 버튼 ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease;
}

.btn-blue {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 107, 249, 0.24);
}

.btn-blue:hover {
  background: var(--blue-hover);
}

.btn-blue:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-lg {
  min-height: 58px;
  padding: 0 34px;
  font-size: 17px;
}

.btn-block {
  display: flex;
  width: 100%;
}

:where(a, button, input, select):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── 상단 알림 바 ───────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 16px;
  background: var(--dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.topbar b {
  color: #ffc94d;
  font-weight: 700;
}

.pill {
  display: inline-block;
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.pill-red {
  background: var(--red);
  color: #ffffff;
}

.pill-blue {
  background: var(--blue-pale);
  color: var(--blue);
}

/* ── 헤더 ───────────────────────────────────────────────────── */
.gnb {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.gnb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo b {
  color: var(--blue);
  font-weight: 800;
}

/* ── 히어로 ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--blue-bg) 0%, var(--blue-soft) 62%, #ffffff 100%);
  padding: 54px 0 44px;
  text-align: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.01em;
}

h1 {
  margin-top: 12px;
  font-size: clamp(29px, 7.4vw, 46px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.accent {
  color: var(--blue);
}

/* 오퍼 강조 띠 — 제목 바로 아래에서 조건을 한 줄로 못 박는다.
   버튼과 헷갈리지 않도록 폭을 CTA보다 넓게 잡고 모서리도 덜 둥글게 둔다
   (버튼은 border-radius: 999px). */
.offer-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  max-width: 440px;
  margin: 22px auto 0;
  padding: 15px 26px;
  background: linear-gradient(135deg, var(--blue-2) 0%, var(--blue) 62%);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 107, 249, 0.26);
  color: #ffffff;
  text-align: center;
}

.ob-line {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.ob-line b {
  font-weight: 800;
  color: #ffffff;
}

.ob-strong {
  font-size: clamp(22px, 5.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-3);
}

.hero .btn-lg {
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin-top: 26px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dcebfb;
  border-radius: 14px;
}

.stat-k {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-4);
}

.stat-v {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ── 섹션 공통 ──────────────────────────────────────────────── */
.sec {
  padding: 68px 0;
}

/* 흰 배경과 회색 배경을 번갈아 둔다 (why · compare 는 흰 배경) */
.sec-feed,
.sec-cases {
  background: var(--bg);
}

.sec-apply {
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%);
}

.sec-title {
  font-size: clamp(22px, 5.6vw, 33px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.033em;
  color: var(--ink);
  text-align: center;
}

.sec-sub {
  margin: 14px auto 0;
  max-width: 40em;
  font-size: 15.5px;
  color: var(--ink-3);
  text-align: center;
}

.caveat {
  margin: 18px auto 0;
  max-width: 42em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-4);
  text-align: center;
}

/* ── 카드 묶음 ──────────────────────────────────────────────── */
.cards-3,
.cards-4 {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

/* 태블릿 폭에서 네 장을 한 줄에 두면 칸이 좁아 글이 눌린다 */
@media (min-width: 761px) and (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
  text-align: center;
}

.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.ico-blue { background: var(--blue-pale); }
.ico-sky { background: #e4f0ff; }
.ico-mint { background: #dbf5e7; }
.ico-amber { background: #ffeccc; }

.card h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ── 비교 ───────────────────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.cmp {
  border-radius: var(--r-card);
  padding: 22px 18px;
}

.cmp h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 14px;
}

.cmp ul {
  list-style: none;
}

.cmp li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--r-sm);
}

.cmp li + li {
  margin-top: 8px;
}

.cmp li span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-4);
}

.cmp li b {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cmp-plain {
  background: #f1f3f6;
}

.cmp-plain h3 {
  color: var(--ink-3);
}

.cmp-plain li b {
  color: var(--ink-3);
}

.cmp-ours {
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 107, 249, 0.22);
}

.cmp-ours h3 {
  color: #ffffff;
}

.cmp-ours li b {
  color: var(--blue);
}

/* ── 이런 경우: 가로로 넘겨 보는 카드 ───────────────────────── */
.case-rail {
  display: flex;
  gap: 14px;
  list-style: none;
  margin-top: 34px;
  padding: 4px 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.case {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
}

.case h3 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.case p {
  margin-top: 9px;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ── 신청서 ─────────────────────────────────────────────────── */
.form-card {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 24px 26px;
  box-shadow: 0 8px 28px rgba(20, 40, 80, 0.08);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}

.field-hint {
  margin: -4px 0 9px;
  font-size: 13px;
  color: var(--ink-4);
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px; /* iOS 자동 확대 방지 */
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid #dfe5ec;
  border-radius: var(--r-sm);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23798994' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

.field select:invalid {
  color: #9aa7b2;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 249, 0.14);
}

.field input.invalid,
.field select.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(246, 33, 69, 0.12);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14.5px;
  cursor: pointer;
}

.check input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.check b {
  color: var(--blue);
  font-weight: 700;
  margin-right: 3px;
}

.check.invalid span {
  color: var(--red);
}

.privacy {
  margin-bottom: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-4);
}

.btn-blue:disabled {
  background: #b6c2ce;
  box-shadow: none;
  cursor: not-allowed;
}

.message {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-3);
}

.message.error {
  color: var(--red);
}

.form-done {
  padding: 16px 0 8px;
  text-align: center;
}

.form-done:focus {
  outline: none;
}

.done-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #e4f0ff;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
  animation: pop 0.36s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

.form-done strong {
  display: block;
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.form-done p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ── 실시간 신청 현황 ───────────────────────────────────────── */
.feed {
  margin-top: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 2px 12px rgba(20, 40, 80, 0.05);
  overflow: hidden;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.feed-date {
  font-weight: 600;
  color: var(--ink-4);
}

/* 보이는 창 높이를 고정해 두고 목록만 위로 굴린다.
   264px에서 330px로 키웠다. 행 하나가 좁은 화면 52px, 넓은 화면 56px이라
   여섯 줄 남짓이 보이고 마지막 줄이 살짝 걸린다. 걸치는 줄이 있어야 목록이
   계속 이어진다는 것이 눈으로 읽힌다. */
.feed-view {
  height: 330px;
  overflow: hidden;
}

.feed-list {
  list-style: none;
}

.feed-list.is-rolling {
  animation: feed-roll 30s linear infinite;
}

.feed-list.is-rolling:hover {
  animation-play-state: paused;
}

@keyframes feed-roll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.feed-row {
  display: grid;
  grid-template-columns: 74px 46px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f4f8;
}

.fr-type {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.fr-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}

.fr-who {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.34;
  color: var(--ink-4);
  text-align: center;
}

.fr-amt {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fr-state {
  padding: 3px 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.fr-state.is-ok {
  background: var(--blue);
}

.fr-state.is-wait {
  background: #16a34a;
}

/* ── 하단 고정 CTA (모바일) ─────────────────────────────────── */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sticky-cta.is-hidden {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}

/* ── 등장 ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .done-ico { animation: none; }

  /* 굴리지 않고 첫 화면만 보여준다 */
  .feed-list.is-rolling,
  .live-dot {
    animation: none;
  }
}

/* ── 넓은 화면 ──────────────────────────────────────────────── */
@media (min-width: 761px) {
  .br-pc {
    display: inline;
  }

  /* 피드도 다른 섹션과 같은 좌우 여백(.wrap)에 맞춘다.
     칸을 고르게 벌리면 짧은 글자 다섯 개가 넓은 줄에 흩어져 허전해진다.
     그래서 누가 신청했는지(종류·이름·업종)는 왼쪽에 붙여 두고, 남는 폭은
     통째로 가운데 빈칸으로 두어 금액과 상태를 오른쪽 끝으로 민다. */
  .feed-row {
    grid-template-columns: 116px 76px 190px minmax(0, 1fr) 68px;
    gap: 14px;
    padding: 12px 30px;
  }

  .feed-row .fr-who {
    text-align: left;
  }

  .feed-head {
    padding: 15px 30px;
  }

  .sticky-cta {
    display: none;
  }

  .case-rail {
    padding-left: 0;
    padding-right: 0;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── 좁은 화면 ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .hero {
    padding: 44px 0 48px;
  }

  .hero .btn-lg,
  .sec-apply .btn-lg {
    width: 100%;
  }

  .hero-stats li {
    flex: 1;
    min-width: 0;
    padding: 11px 8px;
  }

  .stat-v {
    font-size: 15.5px;
  }

  .sec {
    padding: 48px 0;
  }

  .cards-3,
  .cards-4,
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 신청 섹션이 마지막이므로 고정 CTA 자리를 여기서 확보한다 */
  .sec-apply {
    padding-bottom: 104px;
  }

  .feed-row {
    grid-template-columns: 66px 42px minmax(0, 1fr) auto 40px;
    gap: 6px;
    padding: 11px 14px;
  }

  .fr-type,
  .fr-name {
    font-size: 11.5px;
  }

  .fr-who {
    font-size: 11px;
  }

  .fr-amt {
    font-size: 13px;
  }

  .form-card {
    padding: 24px 18px 22px;
  }
}
