/* 하우투 안내 페이지. 앱 화면(teal)과 같은 색을 쓴다 — 페이지와 앱이 남처럼 보이면 안 된다. */

:root {
  --teal: #0F766E;
  --teal-dark: #0B5A54;
  --teal-soft: #E6F4F1;
  --ink: #10201C;
  --muted: #5C6B64;
  --line: #E3E7E4;
  --bg: #FBFAF7;
  --card: #FFFFFF;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --danger: #B91C1C;
  --danger-soft: #FEE2E2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 32, 28, .04), 0 8px 24px rgba(16, 32, 28, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

/* ---------- 머리말 ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
header.site .brand img { width: 28px; height: 28px; border-radius: 8px; }
header.site nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14.5px;
}
header.site nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
header.site nav a:hover,
header.site nav a[aria-current="page"] { color: var(--teal); }
header.site nav a.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  background: var(--card);
  font-weight: 700;
}
header.site nav a.lang:hover { border-color: var(--teal); }

/* 좁은 화면에서 메뉴가 세 줄로 늘어지면 첫 화면이 그만큼 밀린다. 한 줄로 두고 옆으로 넘긴다. */
@media (max-width: 700px) {
  header.site { padding: 10px 16px; gap: 10px; }
  header.site nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    margin-left: 0;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  header.site nav::-webkit-scrollbar { display: none; }
  .hero { padding: 24px 0 20px; }
}

/* ---------- 뼈대 ---------- */
main.page, main.doc {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px 72px;
}
main.doc { max-width: 760px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
}

.kicker {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 900;
  margin: 0 0 16px;
}
.hero .sub { font-size: 17.5px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }

/* 폰 목업 */
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  padding: 10px;
  background: #14312B;
  border-radius: 38px;
  box-shadow: 0 24px 60px rgba(16, 32, 28, .22);
}
.phone img { border-radius: 28px; }

/* 다운로드 배지 */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--teal);
}
.badge:hover { background: var(--teal-dark); }
.badge.soon {
  background: var(--card);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}
.badge.ghost { background: var(--card); color: var(--teal); }

/* 칩 */
/* 히어로 아래 '이 앱이 대신 해 주는 것' 목록. 장점을 첫 화면에서 바로 읽히게 한다. */
.wins { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; max-width: 34em; }
.wins li {
  position: relative; padding-left: 26px; font-size: 15.5px; color: var(--text); line-height: 1.55;
}
.wins li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 800;
}
.wins b { font-weight: 700; }
@media (max-width: 720px) { .wins li { font-size: 15px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- 스크린샷 띠 ---------- */
.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.strip figure {
  margin: 0;
  flex: 0 0 auto;
  width: 208px;
  scroll-snap-align: center;
}
.strip img {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.strip figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  padding-top: 10px;
}

/* ---------- 구역 ---------- */
.block { padding: 44px 0 8px; }
.block > h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -.03em;
  font-weight: 900;
  margin: 0 0 10px;
}
.lead { color: var(--muted); font-size: 16.5px; margin: 0 0 22px; max-width: 44em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 14.8px; }
.card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card.wide { grid-column: 1 / -1; display: flex; gap: 18px; align-items: flex-start; }

/* 카드 색조 — 벽처럼 보이지 않게 */
.tint-teal   { background: linear-gradient(180deg, #F0FAF7, #fff 62%); }
.tint-blue   { background: linear-gradient(180deg, #EFF6FF, #fff 62%); }
.tint-peach  { background: linear-gradient(180deg, #FFF4EC, #fff 62%); }
.tint-purple { background: linear-gradient(180deg, #F4F1FE, #fff 62%); }
.tint-pink   { background: linear-gradient(180deg, #FDF1F6, #fff 62%); }
.tint-yellow { background: linear-gradient(180deg, #FEFAE9, #fff 62%); }

/* ---------- 비교표 (다른 앱과의 차이) ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.8px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #F4F7F5; font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td .yes { color: var(--teal); font-weight: 800; }
td .no { color: var(--muted); }

/* ---------- 단계 목록 ---------- */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 20px 66px;
  box-shadow: var(--shadow);
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}
ol.steps li h3 { margin: 0 0 5px; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
ol.steps li p { margin: 0; color: var(--muted); font-size: 14.8px; }

/* ---------- 알림 상자 ---------- */
.note, .warn {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
  font-size: 14.8px;
  color: var(--ink);
}
.note { background: var(--teal-soft); border: 1px solid #C8E5DE; }
.warn { background: var(--warn-soft); border: 1px solid #FCD98B; }
.note b, .warn b { display: block; margin-bottom: 4px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14.8px; }

/* ---------- 법적 문서 ---------- */
main.doc h1 { font-size: clamp(26px, 4vw, 34px); padding-top: 32px; }
main.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
main.doc section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
main.doc section h2 { font-size: 17.5px; margin: 0 0 8px; letter-spacing: -.02em; }
main.doc section p { margin: 0 0 10px; font-size: 15px; color: #24352F; }
main.doc section ul { margin: 8px 0 0; padding-left: 20px; }
main.doc section li { font-size: 14.8px; color: var(--muted); margin-bottom: 7px; }

/* ---------- 꼬리말 ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 20px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #F4F6F4;
}
footer.site p { margin: 5px 0; }
footer.site a { color: var(--muted); }
footer.site .fine { font-size: 12.5px; opacity: .8; max-width: 46em; margin: 14px auto 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8EFEB; --muted: #9CAFA7; --line: #26332E; --bg: #0E1613; --card: #151F1B;
    --teal: #3DBB9C; --teal-dark: #6FD5BB; --teal-soft: #12312A;
    --warn-soft: #33270D; --danger-soft: #3A1A1A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
  header.site { background: rgba(14, 22, 19, .85); }
  thead th { background: #1B2723; }
  footer.site { background: #111A17; }
  main.doc section p { color: #C7D6D0; }
  .tint-teal, .tint-blue, .tint-peach, .tint-purple, .tint-pink, .tint-yellow { background: var(--card); }
  .phone { background: #050A08; }
}
