:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #15171c;
  --text-sub: #5b616e;
  --line: #e5e7eb;
  --brand: #1f6feb;
  --brand-soft: #e9f1fe;
  --bad: #e5484d;
  --bad-soft: #fdecec;
  --kakao: #fee500;
  --kakao-text: #191919;
  --radius: 16px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101215;
    --bg-soft: #181b20;
    --text: #f1f3f5;
    --text-sub: #a2a8b4;
    --line: #2a2e36;
    --brand: #5b9bff;
    --brand-soft: #18263d;
    --bad: #ff6b70;
    --bad-soft: #3a1c1e;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
/* 줄바꿈: 제목은 줄 길이 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 */
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
br.mo { display: none; }  /* 모바일에서만 줄바꿈 */
a { color: inherit; text-decoration: none; }
.nw { white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 10vw, 112px) 0; scroll-margin-top: 64px; }
.soft { background: var(--bg-soft); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 12px; }
h2 { font-size: clamp(26px, 4.2vw, 38px); line-height: 1.3; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.lead { color: var(--text-sub); font-size: clamp(16px, 2vw, 18px); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font-weight: 700; font-size: 16px; cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-kakao { background: var(--kakao); color: var(--kakao-text); }

/* header */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.logo span { color: var(--brand); }
nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; color: var(--text-sub); }

/* hero */
.hero { padding: clamp(72px, 12vw, 136px) 0 clamp(64px, 10vw, 112px); text-align: center; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.badge { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.kicker { color: var(--text-sub); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 7vw, 64px); line-height: 1.2; font-weight: 900; letter-spacing: -.035em; margin-bottom: 36px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin: 0 auto 36px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 관리 타임라인 (어두운 띠) */
.band { --band-bg: #0f2347; background: var(--band-bg); color: #f3f5f8; }
.band .eyebrow { color: #7db1ff; }
.band .lead { color: #aeb6c4; }
.band .why-us { color: #fff; font-weight: 700; }
.why-us { margin-top: 14px; }
.tl { display: grid; gap: 16px; margin-top: 40px; }
.tl-row { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 22px 22px 20px; }
.tl-us { background: rgba(91,155,255,.09); border-color: rgba(91,155,255,.35); }
.tl-name { font-weight: 800; font-size: 16px; margin-bottom: 18px; color: #c9d0db; }
.tl-us .tl-name { color: #fff; }
.tl-line { position: relative; }
.tl-tag { margin-top: 18px; font-weight: 800; font-size: 18px; }
.tl-them .tl-tag { color: #ff8a8f; }
.tl-us .tl-tag { color: #7db1ff; }
/* 보통 제작 */
.tl-them .tl-line { display: flex; align-items: flex-start; gap: 10px; height: 52px; }
.tl-start { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: #c9d0db; }
.tl-start i, .tl-steps i { display: block; width: 18px; height: 18px; border-radius: 50%; }
.tl-start i { background: #8b93a3; }
.tl-fade { flex: 1; height: 4px; margin-top: 7px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #8b93a3 0 8px, transparent 8px 14px);
  -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 95%); mask-image: linear-gradient(90deg, #000 10%, transparent 95%); }
.tl-end { flex: none; font-size: 14px; color: #8b93a3; margin-top: -2px; }
/* 웹깐부 */
.tl-bar { position: absolute; left: 9px; right: 0; top: 7px; height: 4px; border-radius: 2px; background: #5b9bff; transform-origin: left; }
.tl-bar::after { content: ""; position: absolute; right: -2px; top: -5px; border: 7px solid transparent; border-left: 10px solid #5b9bff; border-right: 0; }
.tl-steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); font-size: 14px; line-height: 1.35; color: #dfe5ee; }
.tl-steps li { display: flex; flex-direction: column; gap: 8px; }
.tl-steps i { background: #5b9bff; box-shadow: 0 0 0 4px rgba(91,155,255,.25); }
.tl-steps b { color: #fff; }
/* 등장 애니메이션 (JS 있을 때만) */
.js .tl-bar { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.3,.7,.3,1); }
.js .tl-steps li { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.js .tl-fade { opacity: 0; transition: opacity 1s ease .2s; }
.js .tl.on .tl-bar { transform: scaleX(1); }
.js .tl.on .tl-fade { opacity: 1; }
.js .tl.on .tl-steps li { opacity: 1; transform: none; }
.tl-steps li:nth-child(2) { transition-delay: .25s; }
.tl-steps li:nth-child(3) { transition-delay: .45s; }
.tl-steps li:nth-child(4) { transition-delay: .65s; }
.tl-steps li:nth-child(5) { transition-delay: .85s; }
.tl-steps li:nth-child(6) { transition-delay: 1.05s; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band { --band-bg: #142a52; }
}

/* 결과물 예시 */
.example { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.ex-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.ex-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 48px; position: relative; color: var(--text-sub); font-size: 16px; }
.ex-list li::before { content: "✓"; position: absolute; left: 18px; top: 16px; color: var(--brand); font-weight: 900; }
.ex-list b { display: block; color: var(--text); font-size: 17px; }
.phone { margin: 0 auto; width: 100%; max-width: 320px; text-align: center; }
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; border: 10px solid #15171c; box-shadow: 0 24px 50px rgba(0,0,0,.18); background: #fff; }
.phone figcaption { margin-top: 14px; font-size: 14px; color: var(--text-sub); }

/* PC 카톡 QR 안내 */
.qr-modal { margin: auto; border: 0; border-radius: 20px; padding: 32px 28px 24px; width: min(340px, calc(100% - 32px)); text-align: center; background: var(--bg); color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.qr-modal::backdrop { background: rgba(10,15,25,.55); }
.qr-modal h3 { font-size: 20px; margin-bottom: 8px; }
.qr-modal p { color: var(--text-sub); font-size: 15px; }
.qr-modal img { display: block; width: 200px; height: 200px; margin: 20px auto; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.qr-pc { display: inline-block; font-weight: 700; font-size: 15px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.qr-note { margin-top: 8px; font-size: 13px !important; }
.qr-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--text-sub); cursor: pointer; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-sub); font-size: 16px; }
.cards.promise .card { background: var(--brand-soft); border-color: transparent; }
.cards.promise .card h3 { color: var(--brand); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

/* 카톡 대화 예시 */
.chat-demo { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; margin-top: 48px; }
.chat-text h3 { font-size: 22px; margin-bottom: 8px; }
.chat-text p { color: var(--text-sub); font-size: 16px; margin-bottom: 14px; }
.chat-label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--text-sub); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.chat { --chat-bg: #bacee0; --chat-ink: #191919; border-radius: 20px; overflow: hidden; background: var(--chat-bg); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.chat-head { color: var(--chat-ink); font-weight: 700; font-size: 15px; padding: 14px 18px 10px; border-bottom: 1px solid rgba(0,0,0,.06); }
.chat-body { padding: 18px 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 80%; background: #fff; color: #191919; font-size: 15px; line-height: 1.5; padding: 9px 13px; border-radius: 4px 16px 16px 16px; align-self: flex-start; }
.msg.me { background: var(--kakao); align-self: flex-end; border-radius: 16px 4px 16px 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chat { --chat-bg: #33404c; --chat-ink: #f1f3f5; }
}

/* 같이 키우기 */
.grow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; counter-reset: grow; }
.stage { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stage::before { counter-increment: grow; content: "0" counter(grow); display: block; color: var(--brand); font-weight: 900; font-size: 13px; margin-bottom: 10px; }
.stage h3 { font-size: 18px; margin-bottom: 6px; }
.stage p { color: var(--text-sub); font-size: 16px; }

/* pricing */
.price-box { max-width: 560px; margin: 40px auto 0; background: var(--bg); border: 2px solid var(--brand); border-radius: 20px; padding: clamp(28px, 5vw, 40px); text-align: left; }
.price-box .label { color: var(--brand); font-weight: 700; font-size: 14px; }
.price { font-size: clamp(40px, 7vw, 52px); font-weight: 900; letter-spacing: -.03em; line-height: 1.2; margin: 6px 0 4px; }
.price small { font-size: 17px; font-weight: 600; color: var(--text-sub); letter-spacing: 0; }
.per-day { color: var(--text-sub); font-size: 15px; }
.per-day span { white-space: nowrap; }
.price-box ul { list-style: none; margin: 24px 0; display: grid; gap: 2px; }
.price-box li { padding: 9px 0; font-size: 16px; border-bottom: 1px dashed var(--line); padding-left: 26px; position: relative; }
.price-box li:last-child { border-bottom: 0; }
.price-box li::before { content: "✓"; color: var(--brand); font-weight: 900; position: absolute; left: 2px; }
.price-box .btn { width: 100%; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; }
.step { border-top: 3px solid var(--brand); padding-top: 16px; }
.step::before { counter-increment: step; content: "STEP " counter(step); color: var(--brand); font-weight: 800; font-size: 13px; }
.step h3 { font-size: 18px; margin: 6px 0; }
.step p { color: var(--text-sub); font-size: 16px; }

/* faq */
.faq-list { margin-top: 32px; max-width: 760px; }
details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-sub); font-weight: 400; font-size: 22px; line-height: 1; flex: none; }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 18px; color: var(--text-sub); font-size: 16px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--text-sub); font-size: 13px; text-align: center; }

@media (max-width: 720px) {
  /* 모바일 글자 키우기 */
  :root { --text-sub: #4b505b; }
  .lead { font-size: 17px; }
  br.mo { display: inline; }
  .per-day .sep { display: none; }
  h2 { font-size: 28px; }
  .card p, .price-box li, .per-day, .step p, .stage p, details p { font-size: 16px; }
  .card h3, .stage h3, .step h3 { font-size: 19px; }
  .badge, .eyebrow { font-size: 15px; }
  summary { font-size: 17px; }
}

/* 태블릿 */
@media (max-width: 960px) {
  .cards.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .example { grid-template-columns: 1fr; gap: 40px; }
}
/* 모바일 */
@media (max-width: 720px) {
  .cards, .grow, .chat-demo { grid-template-columns: 1fr; }
  .chat-demo { gap: 20px; margin-top: 36px; }
  .cards.four { grid-template-columns: 1fr; gap: 0; background: var(--brand-soft); border-radius: var(--radius); overflow: hidden; }
  .cards.four .card { background: transparent; border-radius: 0; padding: 20px; border-bottom: 1px solid color-mix(in srgb, var(--brand) 14%, transparent); }
  .cards.four .card:last-child { border-bottom: 0; }
  .cards.four .card h3 { margin-bottom: 4px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .cta-row .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .tl-bar, .js .tl-steps li, .js .tl-fade { transition: none; }
  .btn { transition: none; }
}
