/* 도대니랩(dodannylab.com) — 동물원의 집. 동물 사이트와 같은 종이(크림)·잉크(검정) 위에, 도대니랩만의 색은 초록(안내판) 하나.
   동물의 색(비버 갈색·치타 노랑·옥토 보라)은 그 동물이 나오는 자리에서만 --c 로 들어온다.
   움직임: 히어로에서 세 마리가 한 번 걸어 들어오는 것(페이지 로드) · 스크롤이 끄는 것(--p, site.js 가 data-scrub 에 준다) · 세는 숫자 하나. 절마다 페이드업 같은 건 없다(2026-09-18 길록 「AI 스러움을 걷어내자」).
   prefers-reduced-motion 이면 전부 정지. */
:root {
  --paper: #f6efe4; --paper-2: #efe7d9; --card: #fbf8f3; --ink: #191919; --muted: #5b5956; --faint: #938f89;
  --line: rgba(25,25,25,.12); --line-2: rgba(25,25,25,.22);
  --green: #1f6b45; --green-2: #2a8a5a; --green-soft: #dcefe3; --on-green: #ffffff;
  --beaver: #7a4a2a; --cheetah: #ffc629; --octo: #8a5c8e;
  --col: 1120px; --gut: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 17px; line-height: 1.75; color: var(--ink); background: var(--paper);
  word-break: keep-all; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p, li, dd { text-wrap: pretty; }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 22px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green-soft); }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246,239,228,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--muted); transition: color .15s; }
.top nav a:hover { color: var(--ink); }
.top nav a.btn { color: var(--paper); }
.menu { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; line-height: 22px; border: 1px solid var(--ink); transition: background .15s, transform .15s, border-color .15s; cursor: pointer; }
.btn:hover { background: #2b2b2b; color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 9px 15px; font-size: 14px; line-height: 20px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--card); }
.btn.green { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn.green:hover { background: var(--green-2); }
.btn.off { background: var(--paper-2); color: var(--muted); border-color: transparent; cursor: default; }
.cta { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }

/* 절 */
section { padding: 112px 0; position: relative; }
h1 { font-size: clamp(38px, 6.4vw, 78px); line-height: 1.08; font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
h3 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.7; color: var(--muted); max-width: 620px; margin: 22px 0 32px; }
.sub { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 640px; margin: 0 0 44px; }
.bridge { font-size: 18px; color: var(--muted); max-width: 640px; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }

/* 이름표 — 동물의 직함(전산 담당 · 회사 프로그램). 동물 한 장과 동물원 절에만 선다. 절 제목 위에 눈썹처럼 붙이지 않는다 */
.sign { display: inline-flex; gap: 0; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .01em; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--c, var(--green)); }
.sign span { padding: 5px 12px; color: var(--c, var(--green)); }
.sign span + span { background: var(--c, var(--green)); color: #fff; }

/* 히어로 — 왼쪽 글, 오른쪽 잔디 위에 세 마리가 차례로 걸어 들어온다 */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { max-width: 640px; font-size: clamp(36px, 5.2vw, 66px); }
.hero .fit { font-size: 14px; line-height: 22px; color: var(--muted); margin: 18px 0 0; max-width: 520px; }
.tl { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.tl:hover { text-decoration-color: var(--ink); }
.lawn { position: relative; aspect-ratio: 1 / .9; }
.lawn::before { content: ''; position: absolute; left: 4%; right: 4%; bottom: 8%; height: 26%; border-radius: 50%; background: var(--green-soft); }
.lawn::after { content: ''; position: absolute; left: 50%; top: 8%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,198,41,.28), transparent 68%); pointer-events: none; }
.lawn img { position: absolute; bottom: 12%; width: 42%; opacity: 0; transform: translateX(60px); animation: walkin .9s var(--ease) forwards; }
.lawn .b { left: 2%; animation-delay: .15s; width: 46%; }
.lawn .c { left: 30%; bottom: 14%; animation-delay: .45s; z-index: 1; }
.lawn .o { left: 58%; animation-delay: .75s; width: 44%; }
.lawn.done img { animation: bob 3.2s ease-in-out infinite; opacity: 1; transform: none; }
.lawn.done .c { animation-delay: .6s; } .lawn.done .o { animation-delay: 1.2s; }
@keyframes walkin { 0% { opacity: 0; transform: translateX(60px) translateY(0); } 40% { opacity: 1; } 55% { transform: translateX(24px) translateY(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 사이 — 숫자 하나 + 예전/지금 */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; padding: 24px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.fig { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; padding-bottom: 20px; }
.fig b { font-size: clamp(48px, 7vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.fig:last-of-type b { color: var(--muted); }
.fig i { font-style: normal; font-size: 24px; font-weight: 700; color: var(--muted); margin-right: 10px; }
.fig span { font-size: 18px; line-height: 1.5; max-width: 300px; }
.figs .small { grid-column: 1 / -1; margin: 0 0 18px; }
/* 통계 카드(IR 장이 쓴다) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 0; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.stat .num { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.stat .num b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.stat .num i { font-style: normal; font-size: 18px; font-weight: 700; color: var(--muted); }
.stat .num .vs { margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 6px; }
.stat p { font-size: 15px; line-height: 23px; margin: 0 0 8px; }
.stat small { display: block; font-size: 12px; line-height: 17px; color: var(--faint); }

.then { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 72px; }
.then .pic { position: relative; aspect-ratio: 1; }
.then .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.then .pic .after { opacity: var(--p, 0); }
.then .pic .before { opacity: calc(1 - var(--p, 0)); }
.then .cap p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: -.025em; margin: 0 0 10px; transition: opacity .3s, color .3s; }
.then .cap .b { opacity: calc(1 - var(--p, 0) * .75); }
.then .cap .a { color: var(--green); opacity: calc(.25 + var(--p, 0) * .75); }
.then .cap .small { margin-top: 18px; }

/* 우리의 답 — 넷, 상자 없이 줄로 */
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.answers > div { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.answers dt { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.answers dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 26px; max-width: 440px; }

/* 동물원 카드 */
.zoo { background: var(--paper-2); }
.zcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.zc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s; }
.zc:hover { border-color: var(--c); }
.zc img { width: 62%; margin: 28px auto 6px; }
.zc-t { padding: 14px 22px 24px; background: var(--t); flex: 1; }
.zc-where { font-size: 12px; font-weight: 700; color: var(--c); letter-spacing: .02em; }
.zc h3 { margin: 4px 0 6px; font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zc p { font-size: 15px; line-height: 23px; color: var(--muted); margin: 0 0 12px; }
.zc-price { font-size: 14px; font-weight: 600; }
.zc.next img { opacity: .55; }
.soon { font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(25,25,25,.08); padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; vertical-align: middle; }

/* 엔진 — 다섯 걸음, 선이 스크롤 따라 그려진다 */
.engine .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.flow { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: step; }
.flow::before { content: ''; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.flow::after { content: ''; position: absolute; left: 19px; top: 24px; width: 2px; height: calc((100% - 48px) * var(--p, 0)); background: var(--green); transition: height .1s linear; }
.flow li { position: relative; padding: 0 0 26px 60px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); font-weight: 800; font-size: 15px; display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.flow li.on::before { background: var(--green); border-color: var(--green); color: #fff; }
.flow h3 { margin-bottom: 4px; }
.flow p { margin: 0; color: var(--muted); font-size: 16px; line-height: 25px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--green-soft); color: var(--green); }

/* 이미 돌고 있습니다 — 글 한 덩이 */
#now { padding-top: 0; }
#now .sub { max-width: 720px; margin-bottom: 0; }

/* 값 */
.plan { padding: 24px 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.plan.plus { border-color: var(--green); background: #fff; }
.plan b { display: block; font-size: 15px; color: var(--muted); }
.plan em { display: block; font-style: normal; font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 8px; }
.plan p { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }
table.prices { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
table.prices th, table.prices td { text-align: left; padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; }
table.prices thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 600; background: var(--paper-2); }
table.prices tbody th { font-weight: 700; white-space: nowrap; }
table.prices .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: middle; }
table.prices td b { display: block; font-size: 18px; letter-spacing: -.02em; }
table.prices td span { font-size: 13px; color: var(--muted); }

/* 마감 */
.close { background: var(--ink); color: var(--paper); }
.close h2 { color: #fff; }
.close .sub { color: rgba(246,239,228,.72); }
.close .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.close .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.close .btn:hover { background: #fff; }
.close .btn.ghost { background: transparent; color: var(--paper); border-color: rgba(246,239,228,.4); }
.close .btn.ghost:hover { background: rgba(255,255,255,.08); }
.close .homes { display: flex; flex-direction: column; gap: 10px; }
.close .homes a, .close .homes span { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .15s; }
.close .homes a:hover { background: rgba(255,255,255,.12); }
.close .homes img { width: 40px; height: 40px; }
.close .homes b { display: block; font-size: 16px; }
.close .homes small { color: rgba(246,239,228,.65); font-size: 13px; }

/* 동물원 장 — 우리 하나씩 */
.zs { padding: 96px 0; border-top: 1px solid var(--line); }
.zs-g { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.zs-img { position: sticky; top: 96px; border-radius: 24px; background: var(--t); padding: 8%; }
.zs h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zs .one { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.zs-dl { margin: 22px 0; padding: 0; }
.zs-dl dt { font-size: 13px; font-weight: 700; color: var(--c); margin-bottom: 4px; }
.zs-dl dd { margin: 0; }
.says { display: grid; gap: 10px; margin: 26px 0; }
.say { display: grid; gap: 6px; }
.say p { margin: 0; max-width: 80%; padding: 10px 16px; border-radius: 16px; font-size: 15px; line-height: 23px; }
.say .q { justify-self: end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.say .a { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.zs .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 10px; }
.zs .plan.plus { border-color: var(--c); }
.zs .cta { margin-top: 20px; }
.zoo-head { padding: 64px 0 24px; }
.zoo-head .lead { margin-bottom: 0; }

/* 동물원 지도 — 왼쪽에 붙어 따라온다 */
.zoo-lay { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.zoo-map { position: sticky; top: 84px; }
.zoo-map .small { margin-top: 10px; }
.zmap { width: 100%; height: auto; display: block; font-family: inherit; }
.zmap .pen { cursor: pointer; }
.zmap .pen rect:first-child { transition: stroke-width .3s, filter .3s; }
.zmap .pen:hover rect:first-child { stroke-dasharray: none; }
.zmap .pen.on rect:first-child { stroke-dasharray: none; stroke-width: 3.5; filter: drop-shadow(0 0 6px var(--c)); }
.zmap .pen.on image { animation: bob 2s ease-in-out infinite; }
.zmap .sign text { font-size: 11px; font-weight: 700; fill: #fff; text-anchor: middle; }
.zmap .soon-tag text { font-size: 9px; font-weight: 700; fill: var(--c); text-anchor: middle; }
.zmap .nm { font-size: 12px; font-weight: 700; fill: #191919; text-anchor: middle; }
.zmap .empty text { font-size: 26px; font-weight: 800; fill: #a8a29a; text-anchor: middle; }
.zmap .empty .nm { font-size: 11px; fill: #8b857d; font-weight: 600; }
.zmap .gate text { font-size: 11px; font-weight: 700; fill: #f6efe4; text-anchor: middle; }
.zoo-body .zs { padding: 72px 0; }
.zoo-body .zs:first-child { border-top: 0; padding-top: 24px; }
.zoo-body .zs-g { grid-template-columns: 1fr; gap: 20px; }
.zoo-body .zs-img { position: static; width: 200px; padding: 5%; border-radius: 18px; }
.zoo-body .zs .wrap { padding: 0; }

/* 동물 한 장 */
.an-hero { padding: 48px 0 24px; background: var(--t); }
.an-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.an-hero img { width: min(100%, 440px); margin: 0 auto; }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.other { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.other:hover { border-color: var(--c); }
.other span { font-size: 14px; line-height: 20px; color: var(--muted); }
.other b { display: block; color: var(--ink); font-size: 15px; }

/* 문의 쪽지 */
.ask { position: fixed; inset: 0; z-index: 50; background: rgba(25,25,25,.45); display: grid; place-items: center; padding: 20px; }
.ask[hidden] { display: none; }
.ask-card { width: min(520px, 100%); background: var(--paper); border-radius: 18px; padding: 28px; position: relative; }
.ask-x { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.ask h3 { margin-bottom: 4px; }
.ask textarea, .ask input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; margin-top: 10px; }
.ask textarea { min-height: 120px; resize: vertical; }
.ask-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ask-err { color: #b3261e; font-size: 14px; }
.ask-done b { display: block; font-size: 18px; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; }

/* 꼬리 */
.foot { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; margin-bottom: 36px; }
.foot .mark { font-size: 17px; margin-bottom: 10px; }
.foot .brand p { max-width: 420px; }
.foot .links { display: flex; flex-direction: column; gap: 8px; }
.foot .links a { color: var(--muted); } .foot .links a:hover { color: var(--ink); }
.zoo-line { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.zoo-line a, .zoo-line span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.zoo-line small { font-weight: 500; color: var(--faint); }
.legal { font-size: 12px; line-height: 19px; color: var(--faint); }
#biz .nb { white-space: nowrap; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf img { width: 220px; margin: 0 auto 20px; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lawn img, .lawn.done img { animation: none; opacity: 1; transform: none; }
  .zmap .pen.on image { animation: none; }
}

@media (max-width: 960px) {
  .stats, .stats.three, .zcs { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .engine .wrap, .close .wrap, .zs-g, .an-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap > *, .engine .wrap > *, .close .wrap > *, .zs-g > * { min-width: 0; }
  .lawn { max-width: 520px; margin: 0 auto; }
  .zs-img { position: static; max-width: 380px; }
  .zoo-lay { grid-template-columns: 1fr; }
  .zoo-map { position: static; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  :root { font-size: 16px; }
  section { padding: 72px 0; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 12px 24px 20px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 16px; }
  .top.open nav { display: flex; }
  .menu { display: block; }
  .top.open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .top.open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .stats, .stats.three, .zcs, .answers, .zs .plans, .others, .then, .figs { grid-template-columns: minmax(0, 1fr); }
  .answers > div:first-child { border-top: 0; }
  .then { gap: 16px; }
  .foot .cols { grid-template-columns: 1fr; }
  table.prices thead { display: none; }
  table.prices tr { display: grid; grid-template-columns: 1fr 1fr; }
  table.prices tbody th { grid-column: 1 / -1; padding-bottom: 4px; border-top: 1px solid var(--line); }
  table.prices td { border-top: 0; padding-top: 4px; }
  .say p { max-width: 92%; }
}
