/* cattist homepage — design system v2
   표면 2가지(면=카드, 줄=구분선 목록) · 간격 4의 배수 · 글자 7단계 · 모서리 16 하나 · 그림자 없음
   색 역할: 어두운 면=teal-900 하나 / 민트=어두운 면 위 강조+주 버튼 / 밝은 면 강조=teal-700 */
:root {
  --teal-900: #0b3a40;   /* 유일한 어두운 배경: 히어로·회사·바닥글 */
  --teal-800: #0c444b;   /* 밝은 면 위 브랜드 잉크: 로고·통계 숫자·단계 점·눈금 점 */
  --teal-700: #10545c;   /* 밝은 면 위 강조: 작은 제목·링크·외곽선 버튼·포커스 */
  --mint: #3ddc8f;       /* 어두운 면 위 강조, 주 버튼 채움. 밝은 면 장식에 쓰지 않음 */
  --paper: #f6f4ef;      /* 기본 배경 */
  --paper-2: #efeae1;    /* 교차 띠: 종이색과 같은 온도, 한 단계 진하게 */
  --card: #ffffff;
  --ink: #13262a;
  --ink-2: #3c5257;
  --ink-3: #586a6d;      /* 종이·교차 띠 위 4.5:1 이상 */
  --line: #d9d2c5;
  --on-dark-2: rgba(255, 255, 255, .8);
  --on-dark-3: rgba(255, 255, 255, .6);
  --line-dark: rgba(255, 255, 255, .16);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 56px; --s9: 96px;
  --gap: 16px;           /* 카드·사진 격자 */
  --gap-text: 32px;      /* 상자 없는 글 목록의 칸 사이 */
  --radius: 16px;
  --wrap: 1120px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nw { white-space: nowrap; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 244, 239, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: var(--s5); height: 64px; }
.logo { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.03em; color: var(--teal-800); text-decoration: none; }
.logo.light { color: #fff; }
.nav { display: flex; gap: var(--s5); margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.top .logo, .nav a { display: inline-flex; align-items: center; min-height: 44px; }
/* 로고 옆 모토: 작은 글씨·구분선. 메뉴와 부딪히지 않는 961 이상에서만 보인다 */
.top-motto { font-size: 13px; line-height: 1.4; color: var(--ink-3); white-space: nowrap;
  margin-left: calc(var(--s4) - var(--s5)); padding-left: var(--s4); border-left: 1px solid var(--line); }
.nav a:hover { color: var(--teal-700); }

/* ── buttons: 높이 44 하나, 알약 하나, 주(민트 채움) / 보조(외곽선) 두 가지 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1;
  text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn-mint { background: var(--mint); color: var(--teal-900); }
.btn-mint:hover { background: #5fe3a3; }
.btn-line { border-color: rgba(255, 255, 255, .5); color: #fff; }          /* 보조, 어두운 면 */
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost { border-color: var(--teal-700); color: var(--teal-800); }      /* 보조, 밝은 면 */
.btn-ghost:hover { background: rgba(16, 84, 92, .06); }

/* ── hero ── */
.hero { position: relative; background: var(--teal-900); color: #fff; padding: 88px 0 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; color: var(--mint); margin: 0 0 var(--s3); }
.eyebrow.dark { color: var(--teal-700); }
h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 var(--s5); }
.hl { color: var(--mint); }
.lead { font-size: 17px; line-height: 1.75; color: var(--on-dark-2); margin: 0 0 var(--s6); max-width: 34em; }
.cta-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hero-fig { margin: 0; }
.hero-fig img { border-radius: var(--radius); }
.hero-fig figcaption { margin-top: var(--s3); font-size: 13px; color: var(--on-dark-3); }
.pulse { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 48px; }
.pulse path { fill: none; stroke: var(--mint); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }

/* ── section frame: 위아래 96, 머리 묶음(작은 제목 12 → 큰 제목 16 → 설명) 아래 40 ── */
.section { padding: var(--s9) 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--teal-900); color: #fff; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; margin: 0 0 var(--s7); }
h2:has(+ .sub, + .lead) { margin-bottom: var(--s4); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; margin: 0 0 var(--s2); }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption, .stat-txt { text-wrap: pretty; }
.sub { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 46em; margin: 0 0 var(--s7); }
.sub a { color: var(--teal-700); font-weight: 700; }
.section.dark .lead { max-width: 40em; margin-bottom: var(--s7); }
.fine { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin: var(--s4) 0 0; }
.fine.light { color: var(--on-dark-3); }
sup { line-height: 0; }
sup a { text-decoration: none; color: var(--teal-700); font-weight: 700; }

/* ── 면(카드): 흰 바탕 · 1px 선 · 모서리 16 · 안쪽 24 · 그림자 없음 ── */
.stat, .card, .signal, .note, .spec {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
}
.card p, .signal p, .note { margin: 0; color: var(--ink-2); font-size: 15px; }
.note { margin-top: var(--gap); }
.note strong { color: var(--ink); }

/* ── 줄(구분선 목록): 상자 없이 위쪽 1px 선 + 16 ── */
.feature, .rates div { border-top: 1px solid var(--line); padding-top: var(--s4); }
.values div { border-top: 1px solid var(--line-dark); padding-top: var(--s4); }

/* why */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0 0 var(--gap); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--teal-800); letter-spacing: -0.02em; line-height: 1.25; }
.stat-txt { color: var(--ink-2); font-size: 15px; margin-top: var(--s2); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }

/* product */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5) var(--gap-text); margin: 0 0 var(--s7); }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; }
.spec div { padding: var(--s4) var(--s5); border-left: 1px solid var(--line); }
.spec div:first-child { border-left: 0; }
.spec dt { font-size: 13px; color: var(--ink-3); }
.spec dd { margin: var(--s1) 0 0; font-size: 17px; font-weight: 700; white-space: nowrap; }

/* how: 다섯 단계는 상자 없이 번호 점을 선으로 잇는다 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: 46px; right: -12px; height: 2px; background: var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-800); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: var(--s4); }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; text-wrap: balance; }

.cats { margin-top: var(--s8); padding-top: var(--s7); border-top: 1px solid var(--line); }
.cats .sub { font-size: 15px; margin: 0 0 var(--s6); }
.scale { position: relative; height: 92px; margin: 0 16px var(--s5); }
.axis { position: absolute; left: 0; right: 0; top: 58px; border-top: 2px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.axis span { position: absolute; top: 8px; transform: translateX(-50%); }
.axis span:nth-child(1) { left: 0; }
.axis span:nth-child(2) { left: 25%; }
.axis span:nth-child(3) { left: 50%; }
.axis span:nth-child(4) { left: 75%; }
.axis span:nth-child(5) { left: 100%; }
.dot { position: absolute; top: 0; left: var(--x); transform: translateX(-50%); text-align: center; line-height: 1.35; white-space: nowrap; }
.dot::after { content: ""; position: absolute; left: 50%; top: 52px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--teal-800); box-shadow: 0 0 0 3px var(--paper); }
.dot b { display: block; font-size: 15px; }
.dot i { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); }
.rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap) var(--gap-text); }
.rates div { display: flex; flex-direction: column; }
.rates span { color: var(--ink-2); font-size: 15px; }

/* app: 두 칸(왼쪽 머리 묶음 + 설명 줄 2개 / 오른쪽 화면 2장 나란히, 왼쪽 묶음의 세로 가운데) */
.app-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr;
  grid-template-areas: "head shots" "points shots"; column-gap: var(--s8); }
.app-head { grid-area: head; }
.app-points { grid-area: points; align-self: start; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.screens { grid-area: shots; align-self: center; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.screens img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--line); background: #f5f6f8; }

/* signals */
.signals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

/* company (dark) */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--gap-text); }
.values p { margin: 0; color: var(--on-dark-2); font-size: 15px; }
.motto { font-family: inherit; }
.founder-note { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line-dark); }
.founder-line { margin: 0; color: var(--on-dark-2); font-size: 15px; }
.founder-line b { color: #fff; font-size: 17px; }
.founder-quote { margin: var(--s2) 0 0; color: var(--on-dark-2); font-size: 17px; font-weight: 500; }
.founder-more { margin: var(--s3) 0 0; }
.founder-more summary { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 0; color: var(--on-dark-3); font-size: 15px; }
.cred { list-style: none; padding: 0; margin: var(--s3) 0 0; max-width: 620px; }
.cred li { display: flex; gap: var(--s4); padding: var(--s2) 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 15px; }
.cred li:first-child { border-top: 0; }
.cred b { flex: none; width: 40px; color: #fff; font-variant-numeric: tabular-nums; }

/* 펼치기 표시 하나(FAQ·대표 이력 공통): 꺾쇠, 열리면 뒤집힘 */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

/* faq: 줄 목록, 양 끝을 다른 구역과 같게(답 글은 46em) */
.faq-wrap details { border-top: 1px solid var(--line); }
.faq-wrap details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-wrap summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 20px 4px 20px 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.faq-wrap details p { margin: 0 0 var(--s5); max-width: 46em; color: var(--ink-2); font-size: 15px; }
.faq-wrap summary { text-wrap: balance; }

/* contact: 다른 구역과 같은 머리 묶음 + 히어로와 같은 버튼 줄. 상자 없음 */
.contact .sub { margin-bottom: var(--s6); }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.contact-card p { margin: 0; color: var(--ink-3); font-size: 15px; }
@media (min-width: 961px) {
  .contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s8); align-items: center; }
  .contact > div > .sub:last-child { margin-bottom: 0; }
  .contact-card { flex-direction: column; align-items: center; }
}

/* footer */
.foot { background: var(--teal-900); color: var(--on-dark-2); padding: var(--s8) 0 var(--s7); font-size: 15px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.foot-brand { display: flex; flex-direction: column; gap: var(--s1); }
.motto-line { color: var(--on-dark-3); font-size: 13px; }
.foot-links { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.foot-links .tester { color: var(--on-dark-3); font-size: 15px; }
.disclaimer { color: #fff; margin: 0; }
.sources { padding-left: 20px; margin: var(--s4) 0; color: var(--on-dark-3); font-size: 13px; }
.sources li { margin-bottom: var(--s1); }
.company, .copy { margin: var(--s2) 0 0; color: var(--on-dark-3); font-size: 13px; }

/* 포커스: 밝은 면 teal-700, 어두운 면 민트 */
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }
.hero :focus-visible, .section.dark :focus-visible, .foot :focus-visible { outline-color: var(--mint); }

/* ── tablet ≤960 ── */
@media (max-width: 960px) {
  .hero-grid { gap: var(--s6); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .signals { grid-template-columns: minmax(0, 1fr); }
  .stat, .signal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s4); align-items: baseline; }
  .signal h3 { margin: 0; }
  .stat-txt { margin-top: 0; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec div:nth-child(3) { border-left: 0; }
  .spec div:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* 단계: 세로 목록, 점을 세로선으로 잇는다 */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: var(--s4); padding-bottom: var(--s5); }
  .steps li:last-child { padding-bottom: 0; }
  .steps .n { grid-row: 1 / span 2; margin: 0; }
  .steps h3, .steps p { grid-column: 2; }
  .steps h3 { margin-top: 3px; }
  .steps li:not(:last-child)::after { top: 42px; bottom: 8px; left: 16px; right: auto; width: 2px; height: auto; }
  .app-layout { grid-template-rows: auto auto; grid-template-areas: "head head" "points shots"; column-gap: var(--s7); }
}

/* ── phone ≤640 ── */
@media (max-width: 640px) {
  .nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: var(--s8) 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .hero-fig { max-width: 560px; }
  .section { padding: 64px 0; }
  h2 { margin-bottom: var(--s6); }
  .sub, .section.dark .lead { margin-bottom: var(--s6); }
  .contact .sub { margin-bottom: var(--s5); }
  .cta-row .btn { flex: 1 1 0; }
  .stat, .signal { display: block; }
  .signal h3 { margin: 0 0 var(--s2); }
  /* 통계 3개는 카드 하나 안에서 구분선으로 나눈다(제원 카드와 같은 방식) */
  .stats { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
  .stat { background: none; border: 0; border-radius: 0; padding: var(--s4) var(--s5); }
  .stat:first-child { padding-top: var(--s5); }
  .stat:last-child { padding-bottom: var(--s5); }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat-num { font-size: 24px; }
  .stat-txt { margin-top: var(--s2); }
  .split, .features, .values { grid-template-columns: minmax(0, 1fr); }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s3) var(--s5); border-left: 0; }
  .spec div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .spec dd { margin: 0; font-size: 15px; }
  .app-layout { display: block; }
  .app-points { margin-bottom: var(--s6); }
  /* 화면 2장은 옆으로 넘기는 줄: 한 장 280까지 키우고 둘째 장이 오른쪽에 살짝 보이게 */
  .screens { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -20px; padding: 0 20px; scroll-padding: 0 20px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screens img { flex: none; width: min(78%, 280px); min-width: 0; scroll-snap-align: start; }
  .scale { margin: 0 12px var(--s5); }
  .dot b { font-size: 13px; }
  .faq-wrap summary { padding: var(--s4) 4px var(--s4) 0; }
  .contact-card .btn { width: 100%; }
  .contact-card p { width: 100%; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } summary::after { transition: none; } }

/* ── 10-09 추가: 점검 반영(누르는 영역 44px · 모토 휴대폰 크기 · 머리 바 모토 숨김) ── */
.foot-links .tester { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links .tester:hover { color: #fff; }
.founder-more summary { padding: 12px 0; }
.motto-line, .founder-quote { text-wrap: balance; }
.contact .sub:has(+ .sub) { margin-bottom: var(--s3); }
@media (max-width: 960px) { .top-motto { display: none; } }
@media (max-width: 640px) { .motto { font-size: 24px; letter-spacing: -0.03em; } }
