/* ===== Steplog 랜딩 — 스타일 ===== */

:root {
  --bg: #ECEFF0;
  --ink: #1B1D1A;
  --lime: #C9DB52;
  --surface: #FAFBFB;
  --border: #D5D9D7;
  --border-strong: #C7CCC9;
  --muted: #595D57;
  --faint: #9AA09A;
  --faint-strong: #8A8F88;   /* 번호·태그 등 메타 라벨용 그레이 */

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 3px;
  --radius-card: 8px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;       /* 한글 단어 중간 줄바꿈 방지 */
  overflow-wrap: break-word;  /* 단, 긴 토큰(이메일 등)은 넘치지 않게 */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; }

/* ----- shared ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

mark {
  background: var(--lime);
  color: var(--ink);
  padding: 0.02em 0.18em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

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

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 18px;
  border-radius: 0 0 8px 8px; z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* ----- 라벨/아이브로우 ----- */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  letter-spacing: -0.01em; margin-bottom: 18px;
}
.eyebrow__mark, .label__mark {
  width: 11px; height: 11px; border-radius: 3px; background: var(--lime); flex: none;
}
.label--center { justify-content: center; display: flex; }

/* ===== 네비 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand__mark { color: var(--ink); }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.nav__cta {
  font-size: 14.5px; font-weight: 700; padding: 8px 4px;
  border-bottom: 2px solid var(--lime); border-radius: 2px;
}
.nav__cta:hover { color: var(--muted); }

/* ===== 히어로 ===== */
.hero { padding-top: clamp(48px, 9vw, 96px); padding-bottom: clamp(56px, 9vw, 104px); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; }
}
.hero__title {
  font-size: clamp(34px, 5.6vw, 56px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.12; margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 18px); color: var(--muted);
  line-height: 1.75; max-width: 30em; margin-bottom: 32px;
}
.hero__sub strong { color: var(--ink); font-weight: 700; }

/* ----- CTA 버튼 ----- */
.btn {
  background: var(--ink); color: var(--bg);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 15px 26px; font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn--cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: 17px; border-radius: 4px;
  background: #FEE500; color: var(--ink); border-color: #FEE500;   /* 카카오 옐로우 */
}
.btn--cta:hover { background: #F4D900; }
.btn__kakao { flex: none; }
@media (max-width: 520px) { .btn--cta { width: 100%; } }

.hint { font-size: 14px; color: var(--faint); margin-top: 18px; line-height: 1.6; }
.hint strong { color: var(--muted); font-weight: 700; }

/* ===== 데모 카드 ===== */
.hero__demo { width: 100%; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 22px;
}
.card__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.card__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.card__meta { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.card__list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.entry { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.entry__num { font-size: 13px; font-weight: 800; color: var(--faint); }
.entry__memo { font-size: 14.5px; color: var(--ink); }
.entry__out { margin-top: 8px; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; margin-right: 4px;
}
.tag--ai { color: var(--ink); border-color: var(--border-strong); }
.entry__result { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.entry__result mark { font-weight: 600; }
.card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; font-size: 13.5px; color: var(--muted); }
.card__foot strong { color: var(--ink); font-weight: 700; }
.card__export { font-weight: 700; color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 12px; }

/* ===== 섹션 공통 ===== */
.section { padding-block: clamp(64px, 10vw, 116px); border-top: 1px solid var(--border); }
.section__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; }
.section__sub { color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); margin-top: 16px; max-width: 34em; line-height: 1.7; }

/* ===== 문제 ===== */
.problem__grid {
  list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 56px);
  display: grid; gap: 0;   /* 행간은 항목 패딩으로(레퍼런스와 동일) */
}
@media (min-width: 760px) { .problem__grid { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 4.4vw, 56px); } }
.prob {
  display: grid; grid-template-columns: 28px 1fr; gap: 4px;
  border-top: 1px solid var(--border);   /* 항목마다 상단 구분선 */
  padding: 28px 0 8px;
}
.prob__num { font-size: 13px; font-weight: 800; color: var(--faint-strong); padding-top: 4px; }
.prob__title { font-size: clamp(17px, 1.7vw, 19.5px); font-weight: 700; letter-spacing: -0.02em; }
.prob__desc { color: var(--muted); margin-top: 10px; line-height: 1.7; font-size: 15px; }

/* ===== 작동 방식 ===== */
.how__grid {
  list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 56px);
  display: grid; gap: clamp(28px, 3vw, 36px);
}
@media (min-width: 760px) { .how__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); } }
.step { border-top: 1.5px solid var(--ink); padding-top: 24px; }
.step__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.step__num { font-size: clamp(32px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.step__tag { font-size: 12px; font-weight: 600; color: var(--faint-strong); }
.step__title { font-size: clamp(17px, 1.7vw, 21px); font-weight: 700; letter-spacing: -0.02em; margin-top: 16px; }
.step__desc { color: var(--muted); margin-top: 10px; line-height: 1.7; font-size: 15px; }

/* ===== 포지셔닝 밴드 ===== */
.band { background: var(--ink); color: var(--bg); padding-block: clamp(72px, 11vw, 132px); }
.band__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.band__text { font-size: clamp(22px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; }

/* ===== 자주 묻는 질문 (제목 좌 / 아코디언 우) ===== */
.faq__grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }
.faq__head { flex: 0 0 auto; width: min(100%, 280px); }
.faq__body { flex: 1 1 440px; min-width: min(100%, 300px); }
.faq__item { border-top: 1px solid var(--border); }
.faq__q {
  list-style: none; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text { font-size: clamp(16px, 1.7vw, 19px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
.faq__sign { flex: none; width: 24px; text-align: center; font-size: 22px; line-height: 1; color: var(--muted); }
.faq__sign::after { content: "+"; }                              /* 닫힘 +, 열림 − */
.faq__item[open] .faq__sign::after { content: "\2212"; }
.faq__a { margin: 0; padding: 0 44px 26px 0; font-size: 15px; line-height: 1.72; color: var(--muted); max-width: 46em; }
.faq__more { border-top: 1px solid var(--border); padding-top: 22px; font-size: 13.5px; color: var(--faint-strong); }
.faq__more a { color: var(--muted); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.faq__more a:hover { color: var(--ink); }

/* ===== 최종 CTA ===== */
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__title { margin-top: 4px; }
.cta .section__sub { margin-inline: auto; }
.cta .btn--cta { margin-top: 32px; }

/* ===== 푸터 ===== */
.footer { background: var(--ink); color: var(--bg); padding-block: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand__name { font-size: 17px; }
.footer__meta { font-size: 13.5px; color: #9CA29B; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__meta a:hover { color: var(--bg); }
.footer__sep { width: 1px; height: 12px; background: #444; }
.brand--light { color: var(--bg); }
.brand--light .brand__mark { color: var(--bg); }

/* ===== 스크롤 등장 애니메이션 ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

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