/* 터(址) 진단 시뮬레이션(대표 11/11: 주소를 넣으면 어떤 리포트가 나오는지 모션으로, '위치 진단' 대신 '터 진단', 터는 크게 한자와 함께, 점포에도 풍수가 있다는 느낌).
   teo-sim.js와 짝. JS가 없거나 reduced-motion이면 완성된 상태 그대로 보인다. 움직임은 transform·opacity만. 웹폰트 없음(한자는 기기 명조체). */

/* ── 히어로: 큰 터(址) ── */
.teo-hero .wrap{display:grid;gap:28px;align-items:center}
@media(min-width:960px){.teo-hero .wrap{grid-template-columns:minmax(0,1fr) minmax(0,520px);column-gap:48px}.teo-hero .teo-copy{grid-column:1}.teo-hero .tsim{grid-column:2;grid-row:1 / span 2}}
.teo-kick{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;font-size:14px;font-weight:800;letter-spacing:.04em;color:var(--mint-strong)}
.teo-kick::before{content:"";width:22px;height:2px;background:var(--mint)}
.teo-mark{display:flex;align-items:flex-end;gap:14px;margin:0 0 6px;line-height:1}
.teo-mark b{font-size:clamp(92px,16vw,168px);font-weight:900;letter-spacing:-.04em;color:var(--ink)}
.teo-mark i{font-style:normal;font-family:"AppleMyungjo","Nanum Myeongjo","NanumMyeongjo","Batang","Noto Serif CJK KR","Noto Serif KR","Songti SC",serif;font-size:clamp(46px,7.5vw,80px);color:#B3261E;border:3px solid #B3261E;border-radius:10px;padding:6px 8px 4px;margin-bottom:.12em;transform:rotate(-4deg);line-height:1}
.teo-mark small{display:block;font-size:13px;font-weight:700;color:var(--muted);margin-bottom:.6em;writing-mode:vertical-rl;letter-spacing:.2em}
.teo-hero h1{margin-top:0}
.teo-hero h1 em{font-style:normal;color:var(--mint-strong)}
.teo-fs{margin:14px 0 18px;padding:12px 14px;border-left:3px solid #B3261E;background:#FBF4EE;border-radius:0 12px 12px 0;font-size:15px;line-height:1.6;color:var(--body)}
.teo-fs b{color:#8E1F18}

/* ── 시뮬레이션 카드 ── */
.tsim{--tsd:#12201E;--tsa:#F2B33D;--tsr:#E0574D;margin:0;background:var(--tsd);color:#fff;border-radius:26px;padding:16px 16px 14px;box-shadow:0 18px 40px rgba(0,0,0,.24);font-size:14px;line-height:1.5;position:relative;overflow:hidden}
.ts-top{display:flex;align-items:center;gap:10px}
.ts-seal{flex:none;width:38px;height:38px;display:grid;place-items:center;border:2px solid var(--tsr);color:var(--tsr);border-radius:8px;font-family:"AppleMyungjo","Nanum Myeongjo","Batang","Noto Serif CJK KR",serif;font-size:22px;line-height:1}
.ts-who{flex:1;min-width:0}
.ts-who b{display:block;font-size:15px}
.ts-who span{color:#B9C9C6;font-size:13px}
.ts-tag{font-size:12px;font-weight:700;border:1px solid #5C6E6B;border-radius:999px;padding:2px 8px;color:#B9C9C6}
.ts-re{font:inherit;font-size:12px;font-weight:700;color:#fff;background:transparent;border:1px solid #5C6E6B;border-radius:999px;padding:4px 10px;min-height:32px;cursor:pointer}
.ts-re:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.ts-body{display:grid;gap:14px;margin-top:12px}
@media(min-width:560px){.ts-body{grid-template-columns:200px 1fr;align-items:center}}
.ts-map{width:100%;max-width:220px;margin:0 auto;aspect-ratio:1}
.ts-map svg{display:block;width:100%;height:100%;overflow:visible}
.ts-ring,.ts-pin,.ts-r500,.ts-d,.ts-roads{transform-box:fill-box;transform-origin:center}
.ts-ring text{font-family:"AppleMyungjo","Nanum Myeongjo","Batang","Noto Serif CJK KR",serif;font-size:13px;fill:#E7D2A6;text-anchor:middle;dominant-baseline:central}
.ts-steps{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.ts-steps li{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:10px;padding:7px 10px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid transparent}
.ts-steps li b{font-size:14px}
.ts-steps li small{grid-column:1;color:#9FB2AE;font-size:12px}
.ts-viz{grid-column:2;grid-row:1 / span 2;display:flex;align-items:flex-end;gap:3px;width:78px;height:28px}
.ts-bldg i{flex:1;background:#7FA39D;border-radius:2px 2px 0 0}
.ts-bldg i:nth-child(1){height:40%}.ts-bldg i:nth-child(2){height:100%;background:var(--mint)}.ts-bldg i:nth-child(3){height:65%}.ts-bldg i:nth-child(4){height:30%}
.ts-dots{flex-wrap:wrap;align-content:center;gap:4px}
.ts-dots i{width:9px;height:9px;border-radius:50%;background:var(--mint)}
.ts-dots i.y{background:var(--tsa)}
.ts-bar{position:relative;align-items:center}
.ts-bar i{display:block;height:9px;width:100%;border-radius:9px;background:linear-gradient(90deg,var(--mint) 60%,rgba(255,255,255,.14) 60%)}
.ts-bar em{position:absolute;left:100%;top:3px;bottom:3px;width:0;border-left:2px dashed #fff;margin-left:-2px}
.ts-age{flex-direction:column;align-items:stretch;justify-content:center;gap:3px}
.ts-age i{display:block;height:6px;border-radius:6px;background:var(--tsa);transform-origin:left center}
.ts-age i:nth-child(1){width:45%}.ts-age i:nth-child(2){width:80%}.ts-age i:nth-child(3){width:100%}
.ts-line polyline{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ts-line .o{stroke:var(--mint)}.ts-line .c{stroke:var(--tsr);opacity:.85}
.ts-done{display:flex;align-items:center;gap:10px;margin:12px 0 0;padding-top:10px;border-top:1px solid rgba(255,255,255,.12);color:var(--mint);font-weight:800}
.ts-stamp{width:30px;height:30px;display:grid;place-items:center;border-radius:6px;background:var(--tsr);color:#fff;font-family:"AppleMyungjo","Nanum Myeongjo","Batang","Noto Serif CJK KR",serif;font-size:18px;line-height:1}
.ts-note{margin:6px 0 0;font-size:12px;color:#9FB2AE}
.ts-legend{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 0;font-size:12px;color:#B9C9C6}
.ts-legend span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:var(--mint);vertical-align:1px}
.ts-legend span.y::before{background:var(--tsa)}

/* ── 재생 상태(JS가 .ts-js를 붙였을 때만). s1~s5 = 지금까지 온 단계, done = 완성 ── */
.ts-js .ts-steps li{opacity:.38;transition:opacity .35s ease,background-color .35s ease,border-color .35s ease}
.ts-js .ts-steps li.on{opacity:1}
.ts-js .ts-steps li.cur{background:rgba(0,198,178,.14);border-color:rgba(0,198,178,.55)}
.ts-js .ts-viz>*{transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .4s ease}
.ts-js .ts-bldg i{transform:scaleY(0);transform-origin:bottom}
.ts-js .on .ts-bldg i{transform:none}
.ts-js .ts-bldg i:nth-child(2){transition-delay:.12s}.ts-js .ts-bldg i:nth-child(3){transition-delay:.24s}.ts-js .ts-bldg i:nth-child(4){transition-delay:.36s}
.ts-js .ts-dots i{transform:scale(0)}
.ts-js .on .ts-dots i{transform:none}
.ts-js .ts-dots i:nth-child(2n){transition-delay:.1s}.ts-js .ts-dots i:nth-child(3n){transition-delay:.2s}.ts-js .ts-dots i:nth-child(5n){transition-delay:.3s}
.ts-js .ts-bar i{transform:scaleX(0);transform-origin:left}
.ts-js .on .ts-bar i{transform:none}
.ts-js .ts-age i{transform:scaleX(0)}
.ts-js .on .ts-age i{transform:none}
.ts-js .ts-age i:nth-child(2){transition-delay:.15s}.ts-js .ts-age i:nth-child(3){transition-delay:.3s}
.ts-js .ts-line{clip-path:inset(0 100% 0 0);transition:clip-path .9s ease}
.ts-js .on .ts-line{clip-path:inset(0 0 0 0)}
/* 지도: 나침반 고리가 돌아 자리 잡고 → 핀이 꽂히고 → 500m 원이 퍼지고 → 가게 점이 돋는다 */
.ts-js .ts-ring{transition:transform 1.1s cubic-bezier(.2,.8,.2,1),opacity .6s ease;transform:rotate(-120deg) scale(.9);opacity:.2}
.ts-js.s1 .ts-ring{transform:none;opacity:1}
.ts-js .ts-pin{transition:transform .55s cubic-bezier(.3,1.5,.5,1),opacity .3s ease;transform:translateY(-40px);opacity:0}
.ts-js.s1 .ts-pin{transform:none;opacity:1}
.ts-js .ts-r500{transition:transform .8s cubic-bezier(.2,.8,.2,1),opacity .5s ease;transform:scale(.2);opacity:0}
.ts-js.s2 .ts-r500{transform:none;opacity:1}
.ts-js .ts-d{transition:transform .45s cubic-bezier(.3,1.6,.5,1),opacity .3s ease;transform:scale(0);opacity:0;transition-delay:calc(var(--i,0) * 70ms)}
.ts-js.s2 .ts-d{transform:none;opacity:1}
.ts-js .ts-roads{transition:opacity .6s ease;opacity:.35}
.ts-js.s1 .ts-roads{opacity:1}
.ts-js .ts-done,.ts-js .ts-note{opacity:0;transform:translateY(6px);transition:opacity .4s ease,transform .4s ease}
.ts-js.done .ts-done,.ts-js.done .ts-note{opacity:1;transform:none}
.ts-js .ts-stamp{transform:scale(1.8) rotate(-12deg);opacity:0;transition:transform .45s cubic-bezier(.3,1.4,.5,1),opacity .2s ease}
.ts-js.done .ts-stamp{transform:rotate(-6deg);opacity:1}
/* 히어로의 핀 맥박(완성 뒤) */
.ts-js.done .ts-pulse{animation:ts-pulse 1.8s ease-out infinite}
.ts-pulse{transform-box:fill-box;transform-origin:center;opacity:0}
@keyframes ts-pulse{0%{transform:scale(.4);opacity:.7}100%{transform:scale(2.4);opacity:0}}

/* ── 주소를 고르면 진단 칸 아래에 뜨는 미리 보기 ── */
.tsim-live{margin:16px 0 0;animation:ts-in .5s cubic-bezier(.2,.8,.2,1) both}
.tsim-live .ts-hint{margin:10px 0 0;font-size:13px;color:#DDE7E5}
.tsim-live .ts-hint b{color:var(--mint)}
@keyframes ts-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* 진단 카드 제목의 작은 址 */
.loc-card h2 .teo-h2s{display:inline-grid;place-items:center;width:1.25em;height:1.25em;margin-left:8px;border:2px solid #B3261E;border-radius:6px;color:#B3261E;font-family:"AppleMyungjo","Nanum Myeongjo","Batang","Noto Serif CJK KR",serif;font-size:.62em;vertical-align:.25em;font-weight:400}

@media(prefers-reduced-motion:reduce){.tsim *,.tsim-live{animation:none!important;transition:none!important}}
