.hero { padding: 56px 0 36px; }
.hero p.lead { margin-top: 14px; font-size: 1.06rem; max-width: 36em; }
.quote { margin-top: 22px; display: grid; gap: 6px; font-size: .98rem; }
.quote .no { color: var(--faint); text-decoration: line-through; }
.quote .yes { color: var(--brand); font-weight: 600; }

.toc { position: sticky; top: 0; z-index: 20; background: rgba(11,12,15,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.toc .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc a { flex: none; font-size: .88rem; color: var(--text); text-decoration: none; padding: 7px 13px; border-radius: var(--radius-pill); background: var(--paper-2); }
.toc a small { color: var(--faint); margin-left: 4px; }
.toc a:hover, .toc a.on { color: #111; background: var(--brand); }
.toc a.on small, .toc a:hover small { color: #5a4300; }

.topic { padding: 72px 0 0; scroll-margin-top: 56px; }
.topic-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.topic-head .num { font-family: var(--font-mono); color: var(--brand); font-weight: 700; }
.topic-head p { color: var(--muted); width: 100%; }

/* 용어 카드: 데모 크게 + 설명 */
.tc { display: grid; gap: 0; background: var(--paper-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-soft); margin-bottom: 18px; scroll-margin-top: 70px; }
.tc:target { box-shadow: inset 0 0 0 2px var(--brand); }

.tc .stage { background: #f4f3ef; color: #1a1a1a; min-height: 440px; padding: 36px; display: grid; place-items: center; position: relative; overflow: hidden; font-family: var(--font-sans); }
.tc .stage > .in { width: 100%; max-width: 760px; }
@media (max-width: 899px) { .tc .stage { min-height: 280px; padding: 20px; } }
.tc .info { padding: 24px 28px 26px; display: grid; gap: 14px 40px; align-items: start; }
@media (min-width: 900px) { .tc .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tc .info .ctl { grid-column: 2; grid-row: 1 / span 4; } }
.tc .idx { font-family: var(--font-mono); font-size: .78rem; color: var(--faint); }
.tc .nm { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tc .nm b { font-family: var(--font-display); color: var(--ink); font-size: 1.6rem; line-height: 1.2; }
.tc .nm i { font-style: normal; font-family: var(--font-mono); color: var(--muted); font-size: .9rem; }
.tc .ds { font-size: 1rem; color: var(--text); }
.tc .ctl { display: grid; gap: 10px; padding: 14px; background: var(--paper-3); border-radius: var(--radius-md); }
.tc .ctl:empty { display: none; }
.tc .ask { display: grid; gap: 8px; padding-top: 4px; }
.tc .ask span { color: var(--brand); font-size: .95rem; font-weight: 600; }
.tc .ask small { color: var(--faint); font-size: .78rem; }
.tc .ask button { justify-self: start; font: inherit; font-size: .82rem; padding: 7px 12px; border-radius: 8px; border: 0; background: var(--paper-3); color: var(--ink); cursor: pointer; }
.tc .ask button:hover { background: #262a33; }

.ctrl { display: grid; grid-template-columns: 1fr 58px; align-items: center; gap: 10px; font-size: .86rem; }
.ctrl input[type=range] { width: 100%; accent-color: var(--brand); }
.ctrl output { font-family: var(--font-mono); color: var(--muted); font-size: .8rem; text-align: right; }
.lbl { font-size: .8rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .act { font: inherit; font-size: .84rem; padding: 8px 13px; border-radius: var(--radius-pill); border: 0; background: #262a33; color: var(--text); cursor: pointer; }
.seg button.on { background: var(--brand); color: #111; font-weight: 700; }
.act { background: var(--brand); color: #111; font-weight: 700; justify-self: start; }
.hint { font-size: .82rem; color: var(--muted); }

.minicta { margin: 8px 0 0; padding: 18px 20px; border-radius: var(--radius-md); background: var(--paper-2); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.minicta p { color: var(--text); font-size: .95rem; }
.endcta { margin-top: 72px; }
.endcta .panel { display: grid; gap: 12px; }

.toastbox { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; display: grid; gap: 8px; pointer-events: none; }
.toastbox div { background: #f4f5f7; color: #111; padding: 10px 16px; border-radius: 10px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: tin .25s ease-out; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---- 데모 공통 부품 ---- */
.mk { background: #fff; border: 1px solid #e3e0d8; border-radius: 10px; }
.bar { height: 9px; border-radius: 5px; background: #dcd8cf; }
.blue { background: #2f5bff; color: #fff; }
.ph { background: #d9dfee; }
.ph2 { background: #8d97ad url(/assets/media/photo.webp) center 30% / cover no-repeat; }
.sbox { overflow: auto; position: relative; border-radius: 12px; background: #fff; border: 1px solid #e3e0d8; }
.btnd { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border: 0; font: inherit; font-weight: 700; font-size: 15px; border-radius: 10px; cursor: pointer; transition: transform .1s, filter .15s, background .15s, opacity .15s; }
.btnd.blue:hover { filter: brightness(.85); }
.btnd.blue:active { transform: scale(.95); filter: brightness(.75); }
.mark { outline: 3px solid #2f5bff; outline-offset: 3px; position: relative; }
.mark::after { content: attr(data-tag); position: absolute; top: -14px; left: 8px; background: #2f5bff; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; z-index: 3; white-space: nowrap; }
.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.phone { width: 230px; height: 330px; border: 4px solid #1a1a1a; border-radius: 26px; overflow: auto; background: #fff; position: relative; margin: 0 auto; scrollbar-width: none; }
.phone::-webkit-scrollbar { display: none; }
.site-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #eee; top: 0; z-index: 2; }
.site-h b { font-size: 13px; }
.site-nav { display: flex; gap: 12px; margin-left: auto; font-size: 12px; color: #555; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* 애니메이션 */
.a-fade { animation: af 1.2s ease-out both; } @keyframes af { from { opacity: 0; } }
.a-up { animation: au .8s cubic-bezier(.2,.8,.2,1) both; } @keyframes au { from { opacity: 0; transform: translateY(40px); } }
.a-left { animation: al .8s cubic-bezier(.2,.8,.2,1) both; } @keyframes al { from { opacity: 0; transform: translateX(-60px); } }
.a-right { animation: ar .8s cubic-bezier(.2,.8,.2,1) both; } @keyframes ar { from { opacity: 0; transform: translateX(60px); } }
@keyframes mq { to { transform: translateX(-50%); } }
.a-blur { animation: ab 1.1s ease-out both; } @keyframes ab { from { filter: blur(12px); opacity: 0; } }
.a-mask > span { display: inline-block; animation: am .8s cubic-bezier(.2,.8,.2,1) both; } @keyframes am { from { transform: translateY(110%); } }
.hlw { background: linear-gradient(#fcbd18, #fcbd18) no-repeat 0 88% / 0% 42%; }
.a-hl .hlw { animation: ahl .9s .2s ease-out forwards; } @keyframes ahl { to { background-size: 100% 42%; } }

@media (min-width: 900px) { .tc .info > *:not(.ctl) { grid-column: 1; } }

