/* 오토메신저 판매 사이트 — 뼈대(2026-11-26) · 첫 화면 손질(2026-11-27). 색은 이 파일의 값만 씁니다. */
:root {
  --bg: #ffffff; --band: #f3f6f4; --fg: #17201c; --muted: #56625c; --line: #dde5e0;
  --brand: #1f7a55; --brand-ink: #ffffff; --brand-wash: #e4f2eb; --kakao: #fee500;
  /* 어두운 구간 하나(첫 화면 「안전하게」) */
  --deep: #10382b; --deep-ink: #eaf5ef; --deep-muted: #b6d4c5; --deep-line: rgba(255, 255, 255, 0.14); --deep-accent: #8fd6b3;
  --shadow: 0 28px 56px -26px rgba(16, 56, 43, 0.42), 0 10px 22px -14px rgba(16, 56, 43, 0.22);
  --font: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
/* hidden 은 늘 감춤 — .box(grid) · .btn(inline-flex) 처럼 display 를 정한 칸도. 이 줄이 없으면 hidden 이 안 먹어 빈 알림 · 없는 구독의 해지 단추가 보임 */
[hidden] { display: none !important; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }   /* pretty — 마지막 줄에 한 어절만 남지 않게 */
.in { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
code { background: var(--brand-wash); padding: 1px 6px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.top nav a.btn { color: var(--brand-ink); }   /* 머리줄의 [7일 무료] — 위 줄의 회색 글자를 덮음 */

/* ── 첫 화면 맨 위 ── */
.hero { padding-block: 64px 76px;
  background: radial-gradient(70% 60% at 92% 0%, rgba(31, 122, 85, 0.14), rgba(31, 122, 85, 0) 70%), linear-gradient(180deg, #f3f9f5 0%, var(--bg) 70%); }
.hero-text { max-width: 760px; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--brand); background: var(--brand-wash); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); letter-spacing: -0.01em; }
.nb { white-space: nowrap; }   /* 좁은 폭에서 「보냅니다.」 만 한 줄에 떨어지지 않게 묶음 */
.hero-lead { margin-top: 16px; color: var(--muted); max-width: 46ch; font-size: 1.05rem; }
.cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-note { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px 4px 10px; }
.chips li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.hero-art { margin: 44px 0 0; position: relative; }
.hero-art .frame { display: block; border-radius: 14px; overflow: hidden; border: 1px solid #cfdcd5; box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-status { position: absolute; right: 18px; bottom: -22px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 14px; display: grid; gap: 4px; font-size: 0.86rem; min-width: 240px; }
.hero-status p { display: flex; align-items: center; gap: 8px; }
.hero-status b { margin-left: auto; font-size: 0.78rem; color: var(--brand); background: var(--brand-wash); padding: 1px 8px; border-radius: 99px; }
.hero-status b.run { color: #7a5200; background: #fff1d6; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.dot.run { background: #d99a00; animation: dot-blink 1.4s ease-in-out infinite; }
@keyframes dot-blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .dot.run { animation: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 700;
  padding: 14px 22px; border-radius: 10px; text-decoration: none; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.btn small { font-weight: 500; font-size: 0.78rem; background: rgba(255, 255, 255, 0.2); padding: 1px 8px; border-radius: 99px; }
.note { color: var(--muted); font-size: 0.92rem; }

.band { padding-block: 64px; scroll-margin-top: 60px; }
.band.alt { background: var(--band); }
.band h2 { font-size: 1.6rem; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 24px; }

/* ── 세 단계 ── */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 56px; }
.step { display: grid; gap: 20px; align-items: center; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.step h3 { font-size: 1.3rem; margin-top: 12px; }
.step-text p { margin-top: 8px; color: var(--muted); }
.shot { margin: 0; }
.shot a { display: block; cursor: zoom-in; }   /* 누르면 큰 그림(새 탭) */
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 36px -24px rgba(16, 56, 43, 0.4); background: #fff; }
@media (min-width: 860px) {
  .step { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; }
  .step:nth-child(even) .step-text { order: 2; }
}

/* ── 받는 분 휴대폰(그림 — 글자는 예시) ── */
.receive { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .receive { grid-template-columns: 320px minmax(0, 1fr); gap: 64px; } }
.phone-wrap { margin: 0; }
.phone { width: min(300px, 100%); margin: 0 auto; border-radius: 36px; background: #151b1f; padding: 10px; box-shadow: var(--shadow); }
.phone-screen { border-radius: 28px; overflow: hidden; background: #dde6ea; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 400px; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; font-weight: 700; font-size: 0.95rem; color: #1d252b; }
.phone-top .back { font-size: 1.4rem; line-height: 1; color: #59636c; }
.phone-body { padding: 6px 12px 16px; display: grid; align-content: start; gap: 8px; }
.chat-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.chat-name { font-size: 0.76rem; color: #59636c; margin-bottom: 4px; }
.bubble { background: #fff; color: #1d252b; border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 0.88rem; line-height: 1.55; width: fit-content; max-width: 100%; }
.bubble + .bubble { margin-top: 6px; }
.bubble.file { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pdf { background: #d6453d; color: #fff; font-size: 0.68rem; font-weight: 800; padding: 5px 6px; border-radius: 6px; }
.phone-input { margin: 0 10px 10px; background: #fff; border-radius: 18px; padding: 9px 14px; color: #8d969e; font-size: 0.84rem; }
.phone-cap { margin-top: 12px; text-align: center; color: var(--muted); font-size: 0.86rem; }
.swap { margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 16px 18px; display: grid; gap: 10px; }
.swap-in { font-weight: 700; }
.swap-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.swap-out li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.swap-out .who { color: var(--muted); font-size: 0.86rem; }
.swap-out .arrow { color: var(--brand); font-weight: 800; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--brand); font-weight: 800; }

/* ── 이럴 때 씁니다 ── */
.uses { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.use { border-radius: 12px; background: var(--band); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.use h3 { font-size: 1rem; }
.use p { color: var(--muted); font-size: 0.93rem; }

/* ── 기능 ── */
.grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.f { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 8px; align-content: start; background: var(--bg); }
.f h3 { font-size: 1.05rem; margin-top: 4px; }
.f p { color: var(--muted); font-size: 0.95rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* 아이콘 정의만 담음 — 화면에 안 그림 */
.ico { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-wash); color: var(--brand); display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── 안전하게(어두운 구간) ── */
.band.deep { background: var(--deep); color: var(--deep-ink); }
.band.deep h2 { color: #fff; }
.band.deep .sub { color: var(--deep-muted); }
.safe-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.safe-item { border: 1px solid var(--deep-line); border-radius: 12px; padding: 18px 20px; background: rgba(255, 255, 255, 0.05);
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-content: start; }
.safe-item .ico { grid-row: span 2; background: rgba(143, 214, 179, 0.14); color: var(--deep-accent); }
.safe-item h3 { font-size: 1rem; color: #fff; align-self: center; }
.safe-item p { color: var(--deep-muted); font-size: 0.93rem; }
.safe-note { margin-top: 22px; border-left: 3px solid var(--deep-accent); background: rgba(255, 255, 255, 0.07); padding: 14px 16px; border-radius: 0 10px 10px 0; color: var(--deep-ink); font-size: 0.95rem; }

/* ── 요금 ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; display: grid; gap: 6px; align-content: start; }
.plan.pick { border: 2px solid var(--brand); padding: 19px 17px; }
.plan.trial { background: var(--band); border-style: dashed; }
.plan .tag { justify-self: start; font-size: 0.76rem; font-weight: 700; color: var(--brand-ink); background: var(--brand); padding: 2px 9px; border-radius: 99px; }
.plan h3 { font-size: 1rem; color: var(--muted); }
.price { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.pay { font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pcs { font-size: 0.88rem; font-weight: 600; }
.plans + .row { margin-top: 20px; }
.rules { margin: 24px 0 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 4px; }

details { border-bottom: 1px solid var(--line); padding-block: 14px; max-width: 760px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; color: var(--muted); }

/* ── 맨 끝 무료 체험 띠 ── */
.band.final { background: linear-gradient(135deg, #e1f1e8 0%, #f4faf6 100%); text-align: center; }
.final-in { display: grid; justify-items: center; gap: 10px; }
.final-in p { color: var(--muted); max-width: 52ch; }
.final-in .cta { justify-content: center; margin-top: 14px; }

.foot { background: var(--band); border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
  font-size: 0.85rem; color: var(--muted); }
.foot .in { display: grid; gap: 6px; }
.foot .links a { color: var(--fg); }

.doc { padding-block: 48px 72px; max-width: 760px; }
.doc h1 { font-size: 1.6rem; margin-bottom: 16px; }
.todo { border: 2px dashed #c98a1a; background: #fff7e8; color: #6b4708; padding: 14px 16px; border-radius: 8px; }

/* ── 회원 화면(로그인 · 가입 · 내 이용권 · 결제 · 내려받기) ── */
.page { padding-block: 40px 72px; display: grid; gap: 22px; max-width: 760px; }
.page h1 { font-size: 1.7rem; }
.lead { color: var(--muted); }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; background: var(--bg); }
.box h2 { font-size: 1.1rem; margin: 0; }
.box.soft { background: var(--band); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row > * { min-width: 0; }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input[type="email"], input[type="text"], input[type="number"], input[type="search"] {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; width: 100%; min-width: 0; background: #fff; color: var(--fg);
}
input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
button.btn:disabled { opacity: 0.55; cursor: default; }
.btn.line { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.warn { background: #b4472c; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; border-radius: 8px; }
.note { border-radius: 10px; padding: 12px 14px; background: var(--brand-wash); color: var(--fg); }
.note.bad { background: #fde9e4; color: #7a2a17; }
.note.good { background: var(--brand-wash); color: #14533a; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.status { font-size: 1.25rem; font-weight: 800; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--brand-wash); color: var(--brand); }
.badge.off { background: #eef0ef; color: var(--muted); }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.list li .meta { color: var(--muted); font-size: 0.86rem; }
.tbl { overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.choices { display: grid; gap: 10px; }
.choices.plain { border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: 6px; }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--brand); padding: 13px 15px; }
.choice input { width: 18px; height: 18px; accent-color: var(--brand); }
.choice .name { font-weight: 700; }
.choice .price { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.choice .sub { grid-column: 2 / 4; color: var(--muted); font-size: 0.86rem; }
.code-input { letter-spacing: 0.25em; text-transform: uppercase; font-weight: 700; max-width: 260px; }
.hint { color: var(--muted); font-size: 0.9rem; }
.hint.warn-text { color: #7a2a17; font-weight: 600; }   /* 조심할 일(남이 보낸 링크 · 번호) */
.num { max-width: 140px; }   /* 날 수 · 금액 칸(관리자) */
.box h3 { font-size: 1rem; margin: 6px 0 0; }
.draft { border: 2px dashed #c98a1a; background: #fff7e8; color: #6b4708; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.doc h2 { font-size: 1.1rem; margin-top: 18px; }
.doc ol, .doc ul { padding-left: 1.2em; display: grid; gap: 4px; }
.top .nav-me { font-weight: 700; color: var(--brand); }

@media (max-width: 700px) {
  /* 좁은 화면 — 보내는 중 쪽지는 그림 아래 오른쪽에 걸쳐 둠(그림을 가리지 않게) */
  .hero-status { position: relative; right: auto; bottom: auto; margin: -18px 10px 0 auto; width: max-content; max-width: calc(100% - 20px); min-width: 0;
    padding: 8px 12px; gap: 2px; font-size: 0.8rem; }
  .hero-status b { font-size: 0.75rem; }
}
@media (max-width: 560px) {
  .top nav { gap: 12px; font-size: 0.88rem; }
  .top nav .nav-wide { display: none; }
  .hero { padding-block: 40px 52px; }
  .band { padding-block: 48px; }
  .steps { gap: 40px; }
  .phone-screen { min-height: 330px; }
  .swap-out li { grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
  .swap-out .who { grid-column: 1 / -1; }
}
