/* 일등홈케어 홈페이지 공통 스타일 — 브랜드 가이드(web-admin/public/ci.html) 기준
   주색 Primary Teal #0E7568, 잉크 #12312C, 골드 포인트 #C8922F, 워드마크 Black Han Sans, 본문 Noto Sans KR */
:root {
  --bg: #F6F5F2; --card: #FFFFFF; --card-2: #FBFAF7; --ink: #1C2024; --muted: #6B7178; --mute: #9AA0A6;
  --line: #E7E4DE;
  --teal: #0E7568; --teal-ink: #0A584E; --teal-tint: #E4F1EE; --teal-g1: #149080; --teal-g2: #0A584E;
  --gold: #C8922F; --gold-tint: #FAF2E2; --gold-hi: #F2C566;
  --word: #12312C;
  --shadow: 0 1px 3px rgba(28,32,36,.06); --shadow-lg: 0 14px 34px rgba(14,117,104,.18);
  --ok: #15803D; --ok-soft: #DCFCE7; --warn: #B45309; --warn-soft: #FEF3C7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171A; --card: #1C1F23; --card-2: #202327; --ink: #ECEAE6; --muted: #A3A8AD; --mute: #767C82;
    --line: #2C3035;
    --teal: #35A08F; --teal-ink: #8FD6C8; --teal-tint: #16302C; --teal-g1: #35A08F; --teal-g2: #14675C;
    --gold: #E8BD6D; --gold-tint: #2C2415; --gold-hi: #F2C566;
    --word: #FFFFFF;
    --shadow: 0 1px 3px rgba(0,0,0,.35); --shadow-lg: 0 14px 34px rgba(0,0,0,.45);
    --ok: #4ADE80; --ok-soft: #14351F; --warn: #FBBF24; --warn-soft: #3A2A0C;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all;
}
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.bhs { font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif; font-weight: 400; letter-spacing: .01em; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }

/* 상단 내비게이션 · 브랜드 락업 (마크 + 워드마크 + HOME CARE) */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--word); }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.brand-name { font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .01em; line-height: 1.1; color: var(--word); }
.brand-sub { font-size: 8.5px; font-weight: 700; letter-spacing: .44em; color: var(--gold); line-height: 1.2; margin-top: 2px; }
.nav-links { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); background: var(--teal-tint); }
@media (max-width: 640px) { .nav .wrap { height: auto; padding: 10px 16px; flex-wrap: wrap; } .nav-links { margin-left: 0; width: 100%; gap: 0; } .nav-links a { padding: 5px 9px; font-size: 13px; } }

/* 홈 히어로 */
.hero-home { padding: 64px 0 44px; text-align: center; }
.hero-home .eyebrow { margin-bottom: 18px; }
.hero-home h1 { font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif; font-weight: 400; font-size: clamp(32px, 5.4vw, 50px); letter-spacing: .01em; line-height: 1.22; color: var(--word); }
.hero-home h1 em { font-style: normal; color: var(--teal); }
.hero-home p { font-size: clamp(15px, 2vw, 18px); color: var(--muted); margin: 18px auto 0; max-width: 620px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; }
.btn.primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-lg); }
.btn.primary:hover { background: var(--teal-ink); }
.btn.ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn.sm { padding: 8px 16px; font-size: 13px; }

/* 섹션·카드 */
section.block { padding: 36px 0; }
.sec-head { margin-bottom: 20px; }
.sec-head .eyebrow { margin-bottom: 4px; }
.sec-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--word); }
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; color: var(--word); }
.card p, .card li { font-size: 14px; color: var(--muted); }
.ico { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-tint); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.steps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.step b { display: block; font-size: 14px; color: var(--word); }
.step small { color: var(--muted); font-size: 12px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-g1), var(--teal-g2)); color: #fff; font-weight: 800; font-size: 13px; align-items: center; justify-content: center; margin-bottom: 8px; }

/* 요금표 */
.price-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price .cat { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--gold); }
.price h3 { font-size: 17px; font-weight: 700; margin: 4px 0 2px; color: var(--word); }
.price .amount { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 8px 0 2px; color: var(--teal); }
.price .amount small { font-size: 13px; font-weight: 600; color: var(--muted); }
.price .unit { font-size: 12px; color: var(--muted); }
.price ul { list-style: none; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); flex: 1; }
.price li { font-size: 13px; color: var(--muted); padding: 2px 0 2px 16px; position: relative; }
.price li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.price .btn { margin-top: 14px; justify-content: center; }
table.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
table.tbl th, table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.tbl th { background: var(--teal-tint); color: var(--teal); font-size: 13px; }
table.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; }

/* 앱 다운로드 — 브랜드 틸 그라데이션 (스토어 QR 카드와 동일 톤) */
.dl { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, #149080, #0F7466 55%, #0A584E); color: #fff; padding: 56px 24px; text-align: center; }
.dl::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -180px; top: -260px; background: rgba(255,255,255,.08); }
.dl::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; bottom: -240px; background: rgba(242,197,102,.16); }
.dl > * { position: relative; z-index: 1; }
.dl img.icon { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.dl h2 { font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif; font-weight: 400; font-size: clamp(28px, 4.6vw, 40px); margin: 18px 0 8px; letter-spacing: .01em; line-height: 1.15; }
.dl p { font-size: 15px; color: rgba(255,255,255,.92); }
.dl .row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 30px; }
.dl a.store { display: block; width: 240px; background: #fff; border-radius: 24px; padding: 18px 18px 16px; color: var(--teal-g2); box-shadow: 0 16px 36px rgba(6,52,46,.3); transition: transform .15s; }
.dl a.store:hover { transform: translateY(-4px); }
.dl .chip { display: flex; justify-content: center; margin-bottom: 12px; }
.dl .chip img { height: 46px; width: auto; }
.dl img.qr { width: 100%; border-radius: 14px; }
.dl .go { margin-top: 10px; display: inline-block; background: #0A584E; color: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; }
.dl .qr-note { margin-top: 6px; font-size: 12px; color: #5B7B76; }
@media (max-width: 640px) { .dl img.qr, .dl .qr-note { display: none; } .dl a.store { width: min(320px, 100%); } }

/* 문서 페이지 (약관·정책) */
.hero { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; margin: 26px 0 14px; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.hero h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; color: var(--word); }
.hero p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.hero .date { display: inline-block; margin-top: 14px; background: var(--teal-tint); color: var(--teal); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.doc .card { margin-bottom: 12px; }
.doc .card h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; color: var(--word); }
.num { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; background: var(--teal-tint); color: var(--teal); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-left: auto; }
.tag.req { background: var(--teal-tint); color: var(--teal); }
.tag.opt { background: var(--gold-tint); color: var(--gold); }
.doc .card p { color: var(--ink); }
.doc .card p.sub { color: var(--muted); margin-bottom: 6px; }
.doc .card ul, .doc .card ol { margin-top: 4px; padding-left: 0; list-style: none; }
.doc .card li { padding: 3px 0 3px 20px; position: relative; color: var(--muted); }
.doc .card ul li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.doc .card ol { counter-reset: li; }
.doc .card ol li::before { counter-increment: li; content: counter(li) '.'; position: absolute; left: 0; top: 3px; font-size: 13px; font-weight: 700; color: var(--teal); }
.note { background: var(--teal-tint); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.callout { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 12px; }
.callout .k { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.callout .k b { display: block; font-size: 20px; font-weight: 900; color: var(--teal); letter-spacing: -.02em; }
.callout .k span { font-size: 13px; color: var(--muted); }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 18px 36px; box-shadow: var(--shadow); }
.contact .label { font-size: 11px; color: var(--gold); font-weight: 800; letter-spacing: .12em; }
.contact .v { font-size: 16px; font-weight: 700; color: var(--word); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 8px; box-shadow: var(--shadow); }
details summary { cursor: pointer; font-size: 14px; font-weight: 700; padding: 12px 0; list-style: none; display: flex; gap: 10px; align-items: center; color: var(--word); }
details summary::-webkit-details-marker { display: none; }
details .q { width: 22px; height: 22px; border-radius: 7px; background: var(--teal-tint); color: var(--teal); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
details .a { font-size: 14px; color: var(--muted); padding: 0 0 14px 32px; }

/* 푸터 · 사업자 정보 */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 48px; font-size: 13px; color: var(--muted); background: var(--card-2); }
footer.site .brand { margin-bottom: 16px; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; font-weight: 700; }
footer.site .links a { color: var(--ink); }
footer.site .links a.em { color: var(--teal); }
footer.site dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
footer.site dt { color: var(--mute); }
footer.site dd { color: var(--ink); }
footer.site .pending { color: var(--warn); font-weight: 600; }
footer.site .copy { margin-top: 14px; color: var(--mute); }
@media (max-width: 480px) { footer.site dl { grid-template-columns: 1fr; gap: 0; } footer.site dt { margin-top: 6px; font-size: 12px; } }

/* 휴대폰 본인인증 약관 (/terms/phone-verify, 2026-10-09) — 항목 칩을 누르면 그 약관만. 스크립트가 없으면 전부 이어서 보인다 */
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.legal-tab { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.legal-tab .req { color: var(--teal); font-weight: 800; font-size: 11.5px; margin-left: 3px; }
.legal-tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.legal-tab[aria-selected="true"] .req { color: rgba(255,255,255,.8); }
.legal-doc[hidden] { display: none; }
.legal-dl { display: grid; grid-template-columns: 112px 1fr; gap: 8px 14px; margin: 10px 0; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; }
.legal-dl dt { color: var(--muted); font-weight: 700; font-size: 13px; }
.legal-dl dd { color: var(--ink); }
.legal-more { color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
@media (max-width: 560px) {
  .legal-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl dt { margin-top: 6px; }
}
body.in-app header.nav, body.in-app footer.site { display: none; }
body.in-app .hero { padding-top: 12px; }
