/*
 * 손길 사이트 공통 스타일.
 * 색은 crates/rd-app/src/theme.rs 의 LIGHT / DARK 팔레트와 같은 값입니다.
 * var() 를 모르는 오래된 브라우저를 위해 중요한 곳에는 같은 색을 한 번 더 적었습니다.
 */
:root {
  --accent: #026a67; --accent-hover: #01524f; --accent-soft: #e0efec; --accent-text: #01524f; --accent-fg: #026a67;
  --live-soft: #fcebdf; --live-text: #8a3a14;
  --bg: #f1f4f3; --card: #ffffff; --raised-hover: #f0f5f4;
  --border: #d6dfdc; --border-strong: #bfcbc7; --border-hover: #96a7a2; --divider: #e6ecea;
  --text: #132322; --sub: #44524f; --muted: #5e6b68;
  --ok: #18794e; --warn: #a15c00; --warn-soft: #fcefd6;
  --err: #b42318; --err-soft: #fdecea; --err-border: #f4c7c2;
  --apricot: #faa279;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #157971; --accent-hover: #18847b; --accent-soft: #163633; --accent-text: #80d6c9; --accent-fg: #68c7ba;
    --live-soft: #3c251c; --live-text: #f6b698;
    --bg: #101716; --card: #182120; --raised-hover: #283634;
    --border: #2a3836; --border-strong: #3e504d; --border-hover: #5c726e; --divider: #232f2d;
    --text: #e4ecea; --sub: #acbab6; --muted: #8c9c98;
    --ok: #5cc48e; --warn: #e6aa48; --warn-soft: #3a2d16;
    --err: #f27c70; --err-soft: #421f1c; --err-border: #70342e;
  }
}

* { -webkit-box-sizing: border-box; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f1f4f3; background: var(--bg);
  color: #132322; color: var(--text);
  font: 16px/1.65 "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
/* 두 언어: 한쪽만 보입니다(lang.js 가 <html> 에 lang-en 을 붙임). */
html:not(.lang-en) .en { display: none !important; }
html.lang-en .ko { display: none !important; }
html.lang-en body { word-break: normal; }
a { color: #026a67; color: var(--accent-fg); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 56px; }

/* 머리 */
.top { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; padding: 22px 0 26px; }
.brand { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 70px; height: 38px; margin-right: 10px; flex: none; }
.brand b { font-size: 18px; white-space: nowrap; }
.brand span { color: #5e6b68; color: var(--muted); font-size: 14px; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .side { margin-left: auto; padding-left: 12px; white-space: nowrap; }
.top .langsw { font-size: 14px; color: #5e6b68; color: var(--muted); margin-left: 14px; }
.top .call { font-size: 14.5px; color: #44524f; color: var(--sub); white-space: nowrap; text-decoration: none; }
.top .call b { color: #132322; color: var(--text); }

h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { color: #44524f; color: var(--sub); margin-top: 8px; font-size: 17px; }
h2 { font-size: 19px; line-height: 1.4; margin-bottom: 14px; }

/* 카드 */
.card {
  background: #ffffff; background: var(--card);
  border: 1px solid #d6dfdc; border-color: var(--border);
  border-radius: 12px; padding: 24px; margin-top: 16px;
}
.hero { margin-top: 22px; }

/* 버튼 */
.btn {
  display: block; width: 100%; padding: 13px 20px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #bfcbc7; border-color: var(--border-strong);
  background: #ffffff; background: var(--card);
  color: #132322; color: var(--text);
  font: inherit; font-size: 16px; font-weight: 600; text-align: center; text-decoration: none;
}
.btn:hover { background: var(--raised-hover); border-color: var(--border-hover); }
.btn + .btn { margin-top: 10px; }
.btn.primary {
  padding: 18px 20px; font-size: 20px; font-weight: 700; border-color: transparent;
  background: #026a67; background: var(--accent);
  color: #ffffff;
}
.btn.primary:hover { background: #01524f; background: var(--accent-hover); }
.btn[disabled], .btn.busy { opacity: .6; cursor: default; }
.btn svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 8px; }
.btn:focus, summary:focus, a:focus { outline: 3px solid #026a67; outline-color: var(--accent-fg); outline-offset: 3px; }
.btn:focus:not(:focus-visible), summary:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
.fine { color: #5e6b68; color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }
.fine.left { text-align: left; }
.status { font-size: 15px; margin-top: 12px; text-align: center; color: #01524f; color: var(--accent-text); font-weight: 600; }

.btn.small { display: inline-block; width: auto; padding: 6px 14px; font-size: 14px; border-width: 1px; border-radius: 8px; }

/* 알림 띠 */
.note { border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-size: 15px; }
.note b { display: block; font-size: 16px; margin-bottom: 2px; }
.note.scam { background: #fdecea; background: var(--err-soft); color: #b42318; color: var(--err); border: 1px solid #f4c7c2; border-color: var(--err-border); }
.note.warn { background: #fcefd6; background: var(--warn-soft); color: #a15c00; color: var(--warn); }
.note.info { background: #e0efec; background: var(--accent-soft); color: #01524f; color: var(--accent-text); }
.note.device { background: #fcebdf; background: var(--live-soft); color: #8a3a14; color: var(--live-text); margin-top: 0; margin-bottom: 18px; }
.note a { color: inherit; }

/* 순서 */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 20px 46px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; line-height: 32px;
  border-radius: 50%; text-align: center; font-weight: 700;
  background: #e0efec; background: var(--accent-soft);
  color: #01524f; color: var(--accent-text);
}
.steps > li.done:before { content: "\2713"; background: #026a67; background: var(--accent); color: #fff; }
.steps b { display: block; font-size: 17px; line-height: 1.4; padding: 4px 0; }
.steps p { color: #44524f; color: var(--sub); font-size: 15px; }
.steps p + p { margin-top: 6px; }

/* 프로그램 화면을 흉내 낸 그림 */
.mock {
  margin-top: 12px; max-width: 340px; border-radius: 10px; padding: 14px 16px;
  border: 1px solid #d6dfdc; border-color: var(--border);
  background: #f1f4f3; background: var(--bg);
}
.mock .row { display: -webkit-box; display: flex; -webkit-box-align: baseline; align-items: baseline; }
.mock .row + .row { margin-top: 6px; }
.mock .k { width: 76px; flex: none; font-size: 13.5px; color: #5e6b68; color: var(--muted); }
.mock .v { font: 600 22px/1.3 "Cascadia Mono", Consolas, "Courier New", monospace; letter-spacing: .04em; color: #132322; color: var(--text); }
.mock-cap { font-size: 13px; color: #5e6b68; color: var(--muted); margin-top: 6px; }

.smart { margin-top: 12px; max-width: 340px; border-radius: 4px; padding: 16px; background: #0b5cab; color: #fff; font-size: 13.5px; line-height: 1.5; }
.smart .t { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.smart u { text-decoration: underline; font-weight: 700; }
.smart .mark { display: inline-block; padding: 0 5px; border: 2px solid #faa279; border-radius: 4px; }
.smart .acts { margin-top: 14px; text-align: right; }
.smart .acts span { display: inline-block; padding: 3px 14px; border: 1px solid #fff; margin-left: 6px; }

/* 접었다 펴는 질문 */
details { border-top: 1px solid #e6ecea; border-color: var(--divider); padding: 13px 0; }
details:first-of-type { border-top: 0; padding-top: 0; }
details:last-of-type { padding-bottom: 0; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; }
details > p, details > ul, details > ol, details > div { color: #44524f; color: var(--sub); font-size: 15px; margin-top: 8px; }
details ul, details ol { padding-left: 20px; margin-bottom: 0; }
details li + li { margin-top: 4px; }

.plain { margin: 0; padding-left: 20px; color: #44524f; color: var(--sub); font-size: 15px; }
.plain li + li { margin-top: 6px; }

kbd {
  font: inherit; font-size: .92em; font-weight: 600; padding: 1px 7px; border-radius: 6px; white-space: nowrap;
  background: #f1f4f3; background: var(--bg);
  border: 1px solid #bfcbc7; border-color: var(--border-strong);
  color: #132322; color: var(--text);
}
code { font: 600 .95em "Cascadia Mono", Consolas, "Courier New", monospace; overflow-wrap: anywhere; }

/* 값과 복사 버튼이 나란히 놓이는 줄 */
.kv { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; padding: 10px 0; border-top: 1px solid #e6ecea; border-color: var(--divider); }
.kv:first-child { border-top: 0; padding-top: 0; }
.kv .k { width: 104px; padding-right: 12px; flex: none; font-size: 14.5px; color: #44524f; color: var(--sub); }
.kv .v { -webkit-box-flex: 1; flex: 1; min-width: 0; font: 600 21px/1.4 "Cascadia Mono", Consolas, "Courier New", monospace; overflow-wrap: anywhere; word-break: break-all; }
.kv .v.addr { font-size: 16px; }
.kv .btn { margin: 0 0 0 10px; flex: none; }
.kv-after { margin-top: 14px; }
.msg { white-space: pre-line; font-size: 15px; padding: 12px 14px; border-radius: 8px; background: #f1f4f3; background: var(--bg); border: 1px solid #d6dfdc; border-color: var(--border); overflow-wrap: anywhere; }

.room { font: 700 34px/1.2 "Cascadia Mono", Consolas, "Courier New", monospace; letter-spacing: .03em; margin-top: 4px; }
.room-label { font-size: 14.5px; color: #44524f; color: var(--sub); }

.plain li.ok { color: #18794e; color: var(--ok); }
.plain li.bad { color: #b42318; color: var(--err); font-weight: 600; }

/* 동의 표시 */
.consent { display: block; margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; cursor: pointer; font-size: 15.5px; border: 1.5px solid #bfcbc7; border-color: var(--border-strong); }
.consent input { width: 20px; height: 20px; vertical-align: -4px; margin: 0 8px 0 0; accent-color: #026a67; }
.consent.nudge { border-color: #b42318; border-color: var(--err); background: #fdecea; background: var(--err-soft); }
.btn.off { opacity: .45; cursor: not-allowed; }

/* 받은 파일이 뜨는 구석을 가리키는 말풍선 */
.dlhint {
  position: fixed; z-index: 10; padding: 12px 16px; border: 0; border-radius: 10px; cursor: pointer;
  background: #a84a24; color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.dlhint.top { top: 10px; right: 14px; }
.dlhint.bottom { bottom: 10px; left: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .dlhint { -webkit-animation: dlhint 1.1s ease-in-out 4; animation: dlhint 1.1s ease-in-out 4; }
  @-webkit-keyframes dlhint { 50% { -webkit-transform: translateY(6px); } }
  @keyframes dlhint { 50% { transform: translateY(6px); } }
}

/* 꼬리 */
/* 차례(guide.html) */
.toc ol { margin: 0; padding-left: 22px; -webkit-columns: 2; columns: 2; -webkit-column-gap: 28px; column-gap: 28px; }
.toc li { margin: 2px 0; -webkit-column-break-inside: avoid; break-inside: avoid; }
@media (max-width: 520px) { .toc ol { -webkit-columns: 1; columns: 1; } }

.foot { margin-top: 30px; text-align: center; font-size: 14px; color: #5e6b68; color: var(--muted); }
.foot a { color: inherit; margin: 0 8px; white-space: nowrap; }
.foot .who { margin-top: 8px; }

@media (max-width: 520px) {
  .wrap { padding-bottom: 40px; }
  .top { padding: 16px 0 18px; }
  .brand span { display: none; }
  h1 { font-size: 25px; }
  .lead { font-size: 16px; }
  .card { padding: 18px 16px; }
  .btn.primary { font-size: 19px; padding: 17px 14px; }
  .room { font-size: 29px; }
  .kv { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .kv .k { width: 100%; }
  /* 바탕 너비가 0 이면 이름표와 같은 줄에 너비 없이 끼어 글자가 세로로 쌓입니다. */
  .kv .v { font-size: 19px; -webkit-flex: 1 1 60%; flex: 1 1 60%; }
  .kv .v.addr { font-size: 15px; }
}

/* 안내 그림: 밝은 판과 어두운 판은 <picture> 가 고릅니다. */
.pic { display: block; margin: 10px 0 2px; }
.pic img { display: block; width: 100%; max-width: 240px; height: auto; }
.pic.wide { margin: 14px 0 18px; }
.pic.wide img { max-width: 320px; }
.note .pic { margin: 0 0 10px; }
.note .pic img { max-width: 200px; }
.pics { display: -webkit-box; display: flex; flex-wrap: wrap; margin: 0 -8px 14px; }
.pics .pic { margin: 0 8px 8px; -webkit-box-flex: 1; flex: 1 1 90px; }

/* 첫 화면 머리: 넓은 화면에서는 글 옆에 그림. 좁은 화면에서는 받기 버튼이 먼저 보이도록 그림을 뺍니다. */
.intro .pic { display: none; }
@media (min-width: 640px) {
  .intro { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; }
  .intro-text { -webkit-box-flex: 1; flex: 1 1 auto; min-width: 0; }
  .intro .pic { display: block; flex: none; width: 220px; margin: 0 0 0 20px; }
  /* 단계 안내: 글은 왼쪽, 그림은 오른쪽. :has 를 모르는 브라우저에서는 그림이 글 아래에 놓입니다. */
  .steps > li:has(> .pic) { display: grid; grid-template-columns: minmax(0, 1fr) 200px; column-gap: 22px; align-items: start; }
  .steps > li:has(> .pic) > * { grid-column: 1; }
  .steps > li:has(> .pic) > .pic { grid-column: 2; grid-row: 1 / span 6; margin: 2px 0 0; }
}

/* 그림 줄: 높이가 다른 그림은 가운데에 맞춥니다. */
.pics { -webkit-box-align: center; align-items: center; }
.pics .pic img { margin: 0 auto; }
/* 사기 전화 경고: 그림은 왼쪽, 글은 오른쪽. */
.note.scam > .pic { margin: 0 0 8px; }
.note.scam > .pic img { max-width: 84px; }
.note.scam:has(> .pic) { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; }
.note.scam:has(> .pic) > .pic { flex: none; width: 84px; margin: 0 14px 0 0; }
.pics .pic { max-width: 220px; }

/* 프로그램의 실제 화면 사진 */
/* 접속 요청 창 사진: 창 자체에 둥근 모서리가 있어 테두리 없이 */
.shot.req { max-width: 260px; border: 0; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.shot { display: block; margin-top: 12px; width: 100%; max-width: 320px; height: auto; border-radius: 10px; border: 1px solid #d6dfdc; border-color: var(--border); }

/* 한 곳에서만 쓰는 여백 조정. HTML 에 style="…" 을 두지 않으려고 여기 모았습니다
   (보안 정책이 페이지 안에 적힌 스타일을 막습니다). 다른 규칙보다 앞서야 해서 !important. */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-18 { margin-top: 18px !important; }
.mt-22 { margin-top: 22px !important; }
.mb-18 { margin-bottom: 18px !important; }
.pl-0 { padding-left: 0 !important; }
.block { display: block !important; }
.bare { border: 0 !important; padding-bottom: 0 !important; }
.pw-field {
  width: 100%; margin-top: 4px; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid #bfcbc7; border-color: var(--border-strong);
  background: var(--card); color: inherit; font: 600 19px 'Cascadia Mono', Consolas, monospace;
}

/* 제품 소개 (product.html) */
.eyebrow { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; color: #026a67; color: var(--accent-fg); }
h3 { font-size: 16px; line-height: 1.45; }
.body { color: #44524f; color: var(--sub); font-size: 15.5px; }
h2 + .body, h2 + h2 + .body { margin-top: -6px; }
.btn-row .btn.primary { padding: 14px 20px; font-size: 17px; }
.btn-row .btn { padding: 14px 20px; font-size: 17px; }
.tiles { margin-top: 26px; }
.tile {
  display: block; padding: 16px 18px; border-radius: 12px; text-decoration: none; margin-top: 10px;
  background: #e0efec; background: var(--accent-soft);
  color: #01524f; color: var(--accent-text);
}
.tile:hover { text-decoration: underline; }
.tile b { display: block; font-size: 17px; }
.tile span { display: block; font-size: 14.5px; margin-top: 2px; }
.feats { margin-top: 18px; padding-top: 4px; border-top: 1px solid #e6ecea; border-color: var(--divider); }
.feat { margin-top: 16px; }
.feat p { color: #44524f; color: var(--sub); font-size: 15px; margin-top: 2px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; color: #44524f; color: var(--sub); font-size: 15px; }
.checks li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid #e6ecea; border-color: var(--divider); }
.checks li:last-child { padding-bottom: 0; }
.checks li:before { content: "\2713"; position: absolute; left: 2px; top: 11px; font-weight: 700; color: #18794e; color: var(--ok); }
.checks b { color: #132322; color: var(--text); }
.stats { margin-top: 16px; }
.stat { padding: 14px 16px; border-radius: 10px; margin-top: 10px; background: #f1f4f3; background: var(--bg); }
.stat b { display: block; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.stat span { display: block; font-size: 14px; color: #5e6b68; color: var(--muted); margin-top: 2px; }
.split .pic img { margin: 0 auto; }
.cta { text-align: center; }
@media (min-width: 640px) {
  .btn-row { display: -webkit-box; display: flex; }
  .btn-row .btn { -webkit-box-flex: 1; flex: 1 1 0; margin-top: 0; }
  .btn-row .btn + .btn { margin-left: 12px; }
  .tiles, .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tile, .stat { margin-top: 0; }
  .feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .split { display: -webkit-box; display: flex; -webkit-box-align: center; align-items: center; }
  .split > div { -webkit-box-flex: 1; flex: 1 1 auto; min-width: 0; }
  .split > .pic { flex: none; width: 200px; margin: 0 0 0 24px; }
}

/* 팀 주소(s/?team=): 상담원이 불러 준 번호 1~9 누르기 */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.slots .btn { margin: 0; padding: 16px 0; font-size: 30px; font-weight: 800; line-height: 1.2; }
.slots .btn + .btn { margin-top: 0; }
