/*
 * J1_1 — J1 의 내용을 squads.ag 의 방식으로 다시 짠 안(2026-11-28).
 * 스타일은 이 한 장이 전부다: kit.css · ab-agent.css · j1.css 를 부르지 않는다.
 * kit.js(영상 자리 · 상세)와 j1-agent.js(에이전트 소개 · AI 앱 연결 시연)가 만드는 마크업도 여기서 입힌다.
 *
 * squads.ag 에서 가져온 것은 방식뿐이다(코드 · 그림은 가져오지 않았다):
 *  - 색은 먹색 단계 + 파랑 그라데이션 하나. 그라데이션은 작은 머리말 · 제목의 한 낱말 · 주 버튼 · 강조 카드 테두리에만 쓴다
 *  - 글자 크기는 정해 둔 몇 단계만(12 · 13 · 14 · 15 · 17 · 22 · 28 · 34 · 44 · 64), 768px 에서 한 번 커진다
 *  - 모서리는 알약(버튼 · 칩) · 14 · 20(카드) · 24(큰 카드) · 32(그림 칸) · 36(판)
 *  - 구역 사이는 64px → 112px, 본문은 한 줄에 한 문장
 *
 * 순서: 값 → 바탕 → 공통 조각 → 머리 막대 → 첫 화면 → 흐르는 칩 → 문제(대화) → 숫자 → 해결책(영상) → 상세 → AI 앱 연결 → 시작 → 아래 막대 · 바닥
 */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("assets/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("assets/Pretendard-Bold.woff2") format("woff2"); }

/* ---- 값 ---- */
:root {
  --ink: #171719;                    /* 제목 · 강조 */
  --body: rgba(46, 47, 51, 0.88);    /* 본문 */
  --meta: rgba(55, 56, 60, 0.72);    /* 주석 · 근거(흰 바탕에서 5:1) */
  --line: #e1e2e4;
  --line-strong: #aeb0b6;
  --mute: #f7f7f8;                   /* 옅은 칸 */
  --media: #eeeff1;                  /* 그림 칸 */
  --panel: radial-gradient(120% 100% at 50% 0%, #f1f1f3 0%, #e4e5e8 58%, #d8d9dd 100%); /* 첫 화면 · 시작 판 */

  /* 강조색은 이 그라데이션 하나. 흰 글자 · 흰 바탕 모두에서 4.5:1 을 넘는 두 파랑 */
  --grad: linear-gradient(to bottom right, #3b6cf0 30%, #1476d4);
  --blue: #3b6cf0;
  --blue-ink: #2f5fd6;               /* 작은 파란 글자 */
  --blue-tint: #f1f5ff;
  --blue-line: #d5e0fb;
  --blue-glow: rgba(59, 108, 240, 0.16);

  --shadow-card: 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 0 8px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(23, 23, 25, 0.1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- 바탕 ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--ink); background: #fff; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p, li, small { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[id] { scroll-margin-top: 88px; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 줄바꿈: br.lb 는 넓은 화면에서만, br.sb 는 좁은 화면에서만 */
br.sb { display: none; }
@media (max-width: 600px) { br.lb { display: none; } br.sb { display: inline; } }

/* ---- 공통 조각 ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.sec { padding-top: 64px; }
.head { text-align: center; }

/* 작은 머리말: 12px · 굵게 · 넓은 자간 · 그라데이션 글자 + 알약 테두리(사장님 지시 11-28).
   자간이 마지막 글자 뒤에도 붙으므로 왼쪽 안여백을 그만큼 더해 글자를 가운데에 둔다 */
.eyebrow {
  display: block; width: fit-content; margin: 0 0 14px; padding: 4px 12px 4px calc(12px + 0.16em); border: 1px solid var(--blue-line); border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.head .eyebrow, .agx .eyebrow, .dt-wide > .eyebrow { margin-inline: auto; }

h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -0.035em; color: var(--ink); }
h1 em, h2 em, .closing em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 본문: 한 줄에 한 문장(span 하나가 한 줄) */
.lead, .dt-txt > p, .dt-wide > p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--body); }
.lead span { display: block; }
.lead .q { font-weight: 700; color: var(--ink); }
.aside { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--meta); }

/* 버튼: 알약. 주 버튼은 그라데이션, 머리 막대는 검정 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity 0.15s; }
.btn:hover { opacity: 0.9; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(59, 108, 240, 0.32); }
.btn-dark { height: 40px; padding: 0 16px; background: #000; color: #fff; font-size: 14px; }

/* 두 칸 줄: 글 5 · 그림 7. 좁은 화면은 글 → 그림 */
.feat, .dt-row { display: grid; align-items: center; gap: 24px; }
.media, .dt-pic { position: relative; overflow: hidden; margin: 0 -8px; border-radius: 24px; background: var(--media); }

@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
  .sec { padding-top: 112px; }
  h2 { font-size: 44px; }
  .lead, .dt-txt > p, .dt-wide > p { margin-top: 20px; font-size: 17px; }
  .aside { font-size: 14px; }
  .btn { height: 56px; padding: 0 40px; font-size: 17px; }
  .btn-dark { height: 40px; padding: 0 18px; font-size: 15px; }
  .media, .dt-pic { margin-inline: 0; border-radius: 32px; }
}
@media (min-width: 901px) {
  .feat, .dt-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}

/* ---- 머리 막대 ---- */
/* 흐림은 맨 위에서도 켜 둔다(11-28: 내려갔을 때만 켜는 것으로 바꿨다가 사장님 지시로 되돌림) */
.gnb { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out; }
.gnb.scrolled { background: rgba(255, 255, 255, 0.86); box-shadow: 0 1px 0 rgba(23, 23, 25, 0.06); }
.gnb-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.gnb-brand { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; }
.gnb nav { display: none; }
.gnb nav a { font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: opacity 0.15s; }
.gnb nav a:hover { opacity: 0.6; }
.gnb .btn { margin-left: auto; }
@media (min-width: 768px) { .gnb-in { height: 77px; gap: 24px; } }
@media (min-width: 901px) {
  .gnb nav { display: flex; gap: 24px; margin-left: auto; }
  .gnb .btn { margin-left: 0; }
}

/* ---- 첫 화면: 둥근 판 하나, 글은 가운데 위, 그 아래 입력창 견본 → 예시 칩 → 아래로 이끄는 표시(옷 카드 줄 .shelf 는 맺음 구역에서만 쓴다) ---- */
.hero { padding: 8px 10px 0; }
.panel { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 92px 24px 0; border-radius: 28px; background: var(--panel); text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 700; line-height: 1.5; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { margin: 16px 0 0; font-size: clamp(28px, min(6.2vw, 8.2vh), 64px); font-weight: 700; line-height: 1.2; letter-spacing: -0.04em; }
.hero-sub { margin: 16px 0 0; font-size: 15px; line-height: 1.65; }
.hero-sub span { display: block; }
.hero .btn { margin-top: 24px; }

/* 입력창 견본: 그림을 붙이고 한마디 적는 모습(누르는 것이 아니라 그림이다) */
.panel.glow { background: radial-gradient(60% 46% at 50% 100%, rgba(59, 108, 240, 0.2) 0%, rgba(59, 108, 240, 0) 100%), var(--panel); }
.ask { width: min(720px, 100%); margin: 28px 0 0; padding: 14px; border: 1.5px solid transparent; border-radius: 24px; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 16px 48px var(--blue-glow); text-align: left; }
.ask-file { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--body); }
.ask-file img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: var(--mute); }
.ask-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; }
.ask-text { flex: 1; min-height: 3.2em; padding: 0 4px; font-size: 16px; line-height: 1.6; color: var(--ink); } /* 휴대폰에서는 두 줄 — 적히는 동안 상자 높이가 바뀌지 않게 */
.ask-text::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.16em; background: var(--blue); animation: blink 1s steps(1) infinite; }
.ask-send { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); }
.ask-send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ask-chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 700; color: var(--body); white-space: nowrap; }
/* 아래로 이끄는 표시: 마우스 모양 + 한 줄. 누르면 다음 구역으로 */
.cue { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 28px 0 36px; font-size: 14px; line-height: 1.5; color: var(--body); text-decoration: none; transition: color 0.15s; }
.cue:hover { color: var(--ink); }
.cue i { position: relative; width: 22px; height: 34px; border: 2px solid rgba(55, 56, 60, 0.5); border-radius: 12px; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--meta); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
@media (min-width: 768px) {
  .ask { margin-top: 44px; padding: 18px 18px 18px 20px; border-radius: 28px; }
  .ask-file { font-size: 13px; }
  .ask-file img { width: 40px; height: 40px; }
  .ask-text { min-height: 1.6em; font-size: 20px; }
  .ask-send { width: 48px; height: 48px; }
  .ask-send svg { width: 20px; height: 20px; }
  .ask-chips { margin-top: 18px; }
  .ask-chips li { font-size: 14px; }
  .cue { margin: 36px 0 52px; font-size: 15px; }
}

.shelf { display: flex; justify-content: center; align-items: flex-start; gap: 12px; width: 100%; height: 190px; margin-top: 28px; }
.tee-card { flex: none; width: 150px; margin: 20px 0 0; padding: 8px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-float); }
.tee-card:nth-child(2) { margin-top: 0; }
.tee-in { position: relative; }
.tee-in .tee { width: 100%; aspect-ratio: 1130 / 1200; object-fit: contain; }
.tee-in .art { position: absolute; left: 50%; top: 33%; width: 30%; translate: -50% -50%; }
.tee-in .art.drawing { top: 35%; width: 26%; }
.tee-in .art.chest { left: 64%; top: 26%; width: 13%; }

@media (min-width: 768px) {
  .hero { padding: 12px 20px 0; }
  .panel { padding-top: clamp(112px, 9vw, 150px); border-radius: 36px; }
  .hero h1 { margin-top: 20px; }
  .hero-sub { font-size: 18px; }
  .hero .btn { margin-top: 32px; }
  .shelf { gap: 28px; height: clamp(180px, 31svh, 300px); margin-top: 36px; }
  .tee-card { width: clamp(220px, 21vw, 300px); margin-top: 28px; padding: 14px; border-radius: 28px; }
}

/* ---- 흐르는 칩: 에디톡이 하는 일(천천히 120초에 한 바퀴 · 양 끝은 서서히 사라진다 — 44초는 어지러웠다, 11-28) ---- */
.marquee { overflow: hidden; padding-top: 20px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.marquee-track { display: flex; width: max-content; }
.marquee.ready .marquee-track { animation: marquee 120s linear infinite; }
.marquee.ready:hover .marquee-track { animation-play-state: paused; }
.marquee ul { flex: none; display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.marquee li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b6cf0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes marquee { to { transform: translateX(-25%); } } /* 네 벌 가운데 한 벌만큼 */
@media (min-width: 768px) { .marquee { padding-top: 28px; } }

/* ---- 문제: 재구성한 주문 메신저 대화(왼쪽 흰 말풍선 = 고객, 오른쪽 노란 말풍선 = 업체) ---- */
.chat-box { display: grid; place-items: center; padding: 20px 10px; }
.chat-win { --room: #b9cbdc; width: min(400px, 100%); border-radius: 28px; background: var(--room); overflow: hidden; box-shadow: var(--shadow-float); text-align: left; }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; font-size: 15px; font-weight: 700; color: #1d232b; }
.chat-bar svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #1d232b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-bar .room { flex: 1; }
.chat-list { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 4px 12px 14px; list-style: none; }
.chat-list li { position: relative; display: flex; flex-direction: column; }
.chat-list .c { align-items: flex-start; padding-left: 44px; } /* 고객: 프로필 자리만큼 들여 쓴다 */
.chat-list .c.first { margin-top: 4px; }
.chat-list .m { align-items: flex-end; }
.chat-list .face { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 14px; background: #9fb4c8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='14' r='6' fill='%23e8eef4'/%3E%3Cpath d='M6 33c1.5-7 6.5-10 12-10s10.5 3 12 10z' fill='%23e8eef4'/%3E%3C/svg%3E") center / cover; }
.chat-list .who { margin: 0 0 4px 2px; font-size: 13px; color: #2c3640; }
.chat-list .row { display: flex; align-items: flex-end; gap: 5px; max-width: 94%; }
.chat-list time { flex: none; font-size: 12px; line-height: 1.2; color: #3a4652; }
.chat-list .say { padding: 8px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; color: #191919; }
.chat-list .c .say { background: #fff; }
.chat-list .m .say { background: #fee500; border-top-right-radius: 4px; }
.chat-list .c.first .say { border-top-left-radius: 4px; }
.chat-list .m + .m { margin-top: -2px; } /* 잇달아 보낸 말은 붙여 쌓는다 */
.chat-list .m + .m .say { border-top-right-radius: 14px; }
.chat-list .day { align-self: center; margin: 6px 0 4px; }
.chat-list .day span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(40, 56, 72, 0.32); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
.chat-list .day.next span { background: rgba(28, 36, 50, 0.72); }
.pic { position: relative; display: block; width: 104px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.pic-photo { background: repeating-conic-gradient(#e6e8ec 0 25%, #fff 0 50%) 0 0 / 14px 14px; } /* 투명 배경의 로고 */
.pic-photo img { position: absolute; left: 50%; top: 50%; width: 88%; translate: -50% -50%; }
.pic-tee { background: #fff; } /* 업체가 만든 시안: 흰 티셔츠 가슴 가운데에 로고 */
.pic-tee .tee { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.pic-tee .logo { position: absolute; left: 50%; top: 31%; width: 25%; translate: -50% 0; }
.chat-in { display: flex; align-items: center; gap: 10px; padding: 8px 12px 12px; background: #fff; }
.chat-in .plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f0f1f3; color: #7a828c; font-size: 18px; line-height: 1; }
.chat-in .field { flex: 1; height: 30px; border-radius: 15px; background: #f0f1f3; }
.chat-in .send { padding: 5px 10px; border-radius: 8px; background: #f0f1f3; color: #8a929c; font-size: 12px; }
@media (min-width: 768px) { .chat-box { padding: 44px; } }

/* ---- 숫자로 보면: 흐름도 → 숫자 셋 → 맺음말 ---- */
.pipe { display: grid; row-gap: 52px; margin-top: 44px; text-align: left; }
.pipe-pre, .pipe-end { position: relative; padding: 32px 16px 16px; border-radius: 24px; }
.pipe-pre { border: 1.5px dashed #9db6f7; background: var(--blue-tint); }
.pipe-end { border: 1.5px dashed var(--line-strong); }
.pipe-tag { position: absolute; left: 16px; top: -15px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pipe-tag.ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--meta); }
.pipe ol { display: flex; flex-direction: column; gap: 28px; height: 100%; margin: 0; padding: 0; list-style: none; }
.pipe li, .pipe-make { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.4; }
.pipe li + li::before, .pipe-end::before { content: "↓"; position: absolute; left: 50%; translate: -50% 0; font-size: 16px; font-weight: 400; color: var(--meta); }
.pipe li + li::before { top: -26px; }
.pipe-end::before { top: -40px; }
.pipe li.loop { border: 1.5px solid var(--blue); }
.pipe li.loop br { display: none; }
.pipe li.loop small { font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.pipe li.loop small::before { content: "↻ "; }
.pipe-make { height: 100%; background: var(--mute); }

.stats { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.stats li { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
/* 가장 중요한 숫자 한 장만 그라데이션 테두리 */
.stats li.key { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 12px 40px var(--blue-glow); }
.stats strong { display: flex; align-items: baseline; gap: 4px; font-size: 44px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats strong small { font-size: 15px; letter-spacing: 0; color: var(--meta); }
.stats b { display: block; margin-top: 20px; font-size: 16px; line-height: 1.45; }
.stats li > span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--meta); font-variant-numeric: tabular-nums; }
.verdict { margin: 40px 0 0; text-align: center; text-wrap: balance; font-size: 17px; font-weight: 700; line-height: 1.55; letter-spacing: -0.015em; }

@media (min-width: 768px) {
  .pipe { margin-top: 56px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats li { padding: 28px; }
  .stats strong { font-size: 56px; }
  .verdict { margin-top: 56px; font-size: 22px; }
}
@media (min-width: 981px) {
  .pipe { grid-template-columns: minmax(0, 1fr) 180px; column-gap: 48px; }
  .pipe ol { flex-direction: row; }
  .pipe li, .pipe-make { flex: 1 1 0; flex-direction: column; flex-wrap: nowrap; min-height: 88px; padding: 14px 8px; }
  .pipe li.loop { flex-grow: 1.35; }
  .pipe li.loop br { display: inline; }
  .pipe li + li::before, .pipe-end::before { content: "→"; left: auto; translate: 0 -50%; }
  .pipe li + li::before { left: -22px; top: 50%; }
  .pipe-end::before { left: -32px; top: calc(50% + 8px); }
}

/* ---- 해결책: 영상 자리 → 카드 셋 → 한 줄 → 맺음말 ---- */
.player { margin-top: 32px; overflow: hidden; border-radius: 24px; }
.player .intro-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b0d18; }
.how { display: grid; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.how li { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.how .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mute); color: var(--blue); }
.how .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-tag { margin: 16px 0 0; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--meta); }
.how h3 { margin: 4px 0 0; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.how li > p:last-child { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.how li > p:last-child span { display: block; }
.keep { margin: 28px 0 0; text-align: center; font-size: 15px; line-height: 1.7; color: var(--body); }
.keep span { display: block; }
.closing { margin: 64px 0 0; text-align: center; text-wrap: balance; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; }
@media (min-width: 768px) {
  .player { margin-top: 48px; border-radius: 32px; }
  .how li { padding: 24px; }
  .how h3 { font-size: 18px; }
  .how li > p:last-child { font-size: 15px; }
  .keep { margin-top: 40px; font-size: 17px; }
  .closing { margin-top: 96px; font-size: 34px; }
}
@media (min-width: 901px) { .how { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; } }

/* 영상 자리(kit.js 의 견본 애니메이션)를 밝은 판으로 */
.vid { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5; width: 100%; background: var(--panel); }
.vid-tag { position: absolute; top: 14px; left: 16px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--meta); }
.vid-scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(1.03); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.vid[data-scene="0"] .vid-scene[data-i="0"], .vid[data-scene="1"] .vid-scene[data-i="1"], .vid[data-scene="2"] .vid-scene[data-i="2"] { opacity: 1; transform: none; }
.vid-say { width: 86%; }
.vid-say p { margin: 0 0 18px; text-align: center; font-size: clamp(20px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
.vid-say .vbox { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border: 1.5px solid transparent; border-radius: 999px; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 12px 40px var(--blue-glow); font-size: clamp(14px, 1.9vw, 20px); }
.vid-say .vtext { flex: 1; min-height: 1.6em; text-align: left; }
.vid-say .vtext::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--blue); animation: blink 1s steps(1) infinite; }
.vid-say .vsend { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); }
.vid-tee { position: relative; overflow: hidden; height: 62%; aspect-ratio: 1130 / 1200; border-radius: 24px; background: #fff; box-shadow: var(--shadow-float); }
.vid-tee img.tee { width: 100%; height: 100%; object-fit: contain; }
.vid-tee .badge { position: absolute; left: 50%; top: 32%; width: 30%; translate: -50% -50%; scale: 0.2; opacity: 0; transition: scale 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s, opacity 0.3s 0.4s; }
.vid[data-scene="1"] .badge { scale: 1; opacity: 1; }
.vid-note { display: none; position: absolute; right: 7%; top: 18%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: left; }
.vid-code { text-align: center; }
.vid-code .k { font-size: clamp(13px, 1.5vw, 16px); font-weight: 700; color: var(--meta); }
.vid-code .c { margin: 10px 0 18px; font-size: clamp(32px, 6vw, 72px); font-weight: 700; line-height: 1.2; letter-spacing: 0.12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vid-code .shops { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vid-code .shops span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.vid-bar { position: absolute; inset: auto 0 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.vid-play { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.vid-play svg { width: 14px; height: 14px; fill: var(--ink); }
.vid-steps { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: left; }
.vid-steps div { font-size: 13px; font-weight: 700; color: var(--meta); }
.vid-steps div b { position: relative; display: block; overflow: hidden; height: 3px; margin-bottom: 6px; border-radius: 2px; background: rgba(23, 23, 25, 0.12); }
.vid-steps div b i { position: absolute; inset: 0; width: 0; background: var(--ink); }
.vid-steps div.on { color: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 901px) {
  .vid { aspect-ratio: 16 / 9; }
  .vid-say { width: min(72%, 620px); }
  .vid-tee { height: 78%; }
  .vid-note { display: block; }
}

/* ---- 상세(kit.js 의 Kit.detail + j1-agent.js): 에이전트 소개 → 01 · 02 · 03 → 04 AI 앱 연결 → 05 주문 ---- */
.dt-in > * { padding-top: 64px; }
.dt-row:nth-child(odd) .dt-txt { order: 0; }

/* 에이전트 소개: 가운데 제목 + 비교 카드 둘 */
.agx { text-align: center; }
.vs { display: grid; gap: 12px; margin-top: 32px; text-align: left; }
.vs > div { padding: 24px; border-radius: 24px; }
.vs b { display: block; margin-bottom: 14px; font-size: 16px; letter-spacing: -0.01em; }
.vs ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vs li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.vs li::before { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.vs-old { background: var(--mute); color: var(--meta); }
.vs-old li::before { content: "–"; background: #e4e5e8; color: #6f7072; }
.vs-new { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 12px 40px var(--blue-glow); }
.vs-new b { color: var(--blue-ink); }
.vs-new li::before { content: "✓"; background: var(--grad); color: #fff; }
.agx .undo { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--meta); }

/* 그림 칸 안: 대화 · 옷 위의 도안 · 검사 카드 */
.dt-pic:has(> img) { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; }
.dt-pic > img:first-child { width: 100%; height: 100%; object-fit: contain; }
.dt-pic > img.on-tee { position: absolute; left: 50%; top: 33%; width: 30%; height: auto; translate: -50% -50%; }
.say-chips { position: absolute; inset: auto 0 6%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 6%; }
.say-chips span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; }
.bubbles, .checks { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; padding: 28px 20px; }
.bub { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.bub.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bub.ai { align-self: flex-start; border: 1px solid var(--line); background: #fff; border-bottom-left-radius: 6px; }
.bub.ai b { color: var(--blue-ink); }
.bub.photo { padding: 6px; border: 1px solid var(--line); background: #fff; }
.bub.photo img { width: 132px; height: auto; border-radius: 12px; }
.chk { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.chk i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 14px; font-weight: 700; color: #fff; }
.chk.ok i { background: #12805f; }
.chk.no i { background: #d13438; }
.chk b { display: block; margin-bottom: 2px; font-size: 16px; line-height: 1.45; }
.chk span { font-size: 14px; line-height: 1.55; color: var(--meta); }

/* 가운데 제목이 붙는 넓은 구역(04 · 05) */
.dt-wide { text-align: center; }
.dt-wide > p { max-width: 720px; margin-inline: auto; text-wrap: balance; }
.flow { display: grid; gap: 12px; margin-top: 32px; text-align: left; counter-reset: f; }
.flow div { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.flow div::before { counter-increment: f; content: counter(f); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.flow b { display: block; margin-bottom: 6px; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.flow span { font-size: 14px; line-height: 1.6; color: var(--body); }

@media (min-width: 768px) {
  .dt-in > * { padding-top: 112px; }
  .vs > div { padding: 28px; }
  .vs li { font-size: 16px; }
  .bubbles, .checks { padding: 9%; }
  .flow div { padding: 24px; }
  .flow b { font-size: 18px; }
  .flow span { font-size: 15px; }
}
@media (min-width: 901px) {
  /* 01 은 글이 왼쪽, 02 는 그림이 왼쪽, 03 은 다시 글이 왼쪽 */
  .dt-row:nth-child(odd) .dt-txt { order: 2; }
  .vs { grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 48px; }
  .dt-pic { aspect-ratio: 4 / 3; }
  .dt-pic:has(> img) { aspect-ratio: 4 / 3; }
  .dt-pic > img.on-tee { width: 21.2%; } /* 4:3 칸에서는 옷이 칸 폭의 70.6% — 옷 폭의 30% */
  .flow { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
}

/* ---- 04 AI 대화 앱 연결: 세 단계 표시 + 시연(밝은 무대) ---- */
.mcp-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.mcp-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.mcp-steps li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mute); color: var(--ink); font-size: 13px; }
.mcp-steps li.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.mcp-steps li.on b { background: #fff; }
.mcp-stage { position: relative; display: grid; grid-template-rows: auto 56px auto; margin-top: 24px; padding: 16px; border-radius: 24px; background: var(--media); text-align: left; }
.mcp-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.mcp-points li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; }

.win { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-card); }
.win.ed { position: relative; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--body); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e5e8; }
.win-bar span { margin-left: 8px; }

/* 왼쪽 창: 고객의 AI 대화 앱 */
.msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 372px; padding: 16px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: var(--mute); border-bottom-left-radius: 5px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool { padding: 5px 10px; border: 1px solid var(--blue-line); border-radius: 8px; background: var(--blue-tint); font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blue-ink); }
.tool::before { content: "⚙ "; }
.conn { margin-block: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.conn small { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--body); }
.conn-row { display: flex; gap: 8px; }
.conn-url { flex: 1; display: flex; align-items: center; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--mute); font-size: 14px; }
.conn-url .st.on { padding-left: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2f33' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E") left center / 16px no-repeat; }
.conn-url::after { content: ""; width: 2px; height: 1.1em; margin-left: 2px; background: var(--blue); animation: blink 1s steps(1) infinite; }
.conn-add { display: grid; place-items: center; height: 38px; padding: 0 16px; border-radius: 10px; background: #e4e5e8; color: var(--meta); font-size: 14px; transition: background 0.3s, color 0.3s; }
.mcp-stage.added .conn-add { background: var(--ink); color: #fff; }
.conn-ok { align-self: center; display: flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: #ecfaf4; color: #12795a; font-size: 13px; font-weight: 700; }
.conn-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1aa37a; }

/* 가운데: 커넥터 선 */
.wire { position: relative; display: grid; place-items: center; }
.wire::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; border-left: 2px dashed var(--line-strong); }
.wire b { position: relative; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; line-height: 1.5; }
.wire .dot { position: absolute; left: calc(50% - 4px); top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px rgba(59, 108, 240, 0.6); opacity: 0; }
.wire.pulse .dot { animation: wire-go-v 0.9s var(--ease) 2; }
@keyframes wire-go-v { 0% { top: 8px; opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 18px); opacity: 0; } }
@keyframes wire-go { 0% { left: 8px; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 18px); opacity: 0; } }

/* 오른쪽 창: 열어 둔 에디톡 편집기(캔버스 + 에디 AI 탭) */
.ed-body { flex: 1; display: grid; }
.ed-canvas { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--mute); }
.ed-tee { position: relative; width: 52%; }
.ed-tee svg { display: block; width: 100%; height: auto; }
.ed-tee path { fill: #fff; stroke: #d5d8de; stroke-width: 1.5; transition: fill 0.8s var(--ease); }
.mcp-stage.navy .ed-tee path { fill: #111e27; stroke: #111e27; }
.ed-tee img { position: absolute; left: 50%; top: 44%; width: 34%; translate: -50% -50%; transition: left 0.8s var(--ease), top 0.8s var(--ease), width 0.8s var(--ease); }
.mcp-stage.left .ed-tee img { left: 64%; top: 34%; width: 13%; }
.ed-qty { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.ed-side { display: flex; flex-direction: column; gap: 8px; min-height: 236px; padding: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.ed-tab { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--mute); }
.ed-tab span { flex: 1; padding: 5px 0; border-radius: 8px; text-align: center; font-size: 13px; color: var(--meta); }
.ed-tab span.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.guide { padding: 10px 12px 12px; border: 1.5px dashed #9db6f7; border-radius: 12px; background: var(--blue-tint); }
.guide small { display: block; font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.guide p { margin: 4px 0 10px; font-size: 13px; line-height: 1.55; color: var(--body); }
.guide-url { display: inline-flex; align-items: center; height: 28px; padding: 0 10px 0 30px; border: 1px solid var(--blue-line); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5fd6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E") 9px center / 15px no-repeat; font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.linked { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: #ecfaf4; color: #12795a; font-size: 13px; font-weight: 700; }
.linked::before { content: ""; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #1aa37a; box-shadow: 0 0 0 3px rgba(26, 163, 122, 0.2); }
.linked span { flex: 1; }
.linked u { padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--body); font-weight: 400; text-decoration: none; }
.act { padding: 8px 10px; border-radius: 10px; background: var(--blue-tint); font-size: 13px; line-height: 1.45; }
.act em { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--grad); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.act.note { background: var(--mute); color: var(--meta); }
.allow { position: absolute; inset: 42px 0 0; z-index: 2; display: grid; place-items: center; padding: 16px; background: rgba(23, 23, 25, 0.5); }
.allow-card { width: min(310px, 100%); padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.allow-card small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--meta); }
.allow-card strong { display: block; margin: 8px 0; font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }
.allow-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--body); }
.allow-btn { display: grid; place-items: center; height: 42px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 15px; font-weight: 700; transition: scale 0.15s, box-shadow 0.15s; }
.mcp-stage.press .allow-btn { scale: 0.96; box-shadow: 0 0 0 6px rgba(59, 108, 240, 0.25); }

/* 차례대로 나타나기(j1-agent.js 가 .on 을 붙인다). 꺼진 것은 자리도 차지하지 않는다 */
.st:not(.on) { display: none; }
.st.on { animation: st-in 0.45s var(--ease) both; }
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .mcp-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
  .mcp-steps li { flex-direction: column; gap: 6px; padding: 10px 4px; border-radius: 16px; text-align: center; }
}
@media (min-width: 901px) {
  .mcp-stage { grid-template-columns: 1fr 96px 1.25fr; grid-template-rows: none; margin-top: 32px; padding: 32px; border-radius: 32px; }
  .win { min-height: 452px; }
  .msgs { min-height: 0; }
  .wire::before { left: 8px; right: 8px; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed var(--line-strong); }
  .wire .dot { left: 8px; top: calc(50% - 4px); }
  .wire.pulse .dot { animation-name: wire-go; }
  .ed-body { grid-template-columns: 1fr 46%; }
  .ed-canvas { aspect-ratio: auto; }
  .ed-tee { width: 78%; }
  .ed-side { min-height: 0; border-top: 0; border-left: 1px solid var(--line); }
}

/* ---- 시작하기: 첫 화면과 같은 판 ---- */
.start { padding: 64px 10px 0; }
.start .panel { padding-top: 40px; }
.start h2 { font-size: 26px; line-height: 1.3; }
.start p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; text-wrap: balance; }
.start .btn { height: 48px; margin-top: 20px; padding: 0 28px; font-size: 15px; }
.start .beta-note { margin-top: 12px; font-size: 13px; color: var(--meta); } /* 버튼 아래 한 줄: 베타 · 무료 */
.start .shelf { height: 132px; }
@media (min-width: 768px) {
  .start { padding: 112px 20px 0; }
  .start .panel { padding-top: 64px; }
  .start h2 { font-size: 44px; }
  .start p { margin-top: 12px; font-size: 17px; }
  .start .btn { height: 56px; margin-top: 28px; padding: 0 40px; font-size: 17px; }
  .start .beta-note { margin-top: 16px; font-size: 15px; }
  .start .shelf { height: 260px; }
}

/* ---- 아래 막대(휴대폰에서만, 첫 화면의 버튼이 지나간 뒤) · 바닥 ---- */
.bar { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateY(100%); transition: transform 0.3s; }
.bar.show { transform: none; }
.bar p { flex: 1; min-width: 0; margin: 0; line-height: 1.45; }
.bar b { display: block; font-size: 14px; }
.bar small { font-size: 12px; color: var(--meta); }
.bar .btn { flex: none; height: 48px; padding: 0 24px; font-size: 15px; box-shadow: none; }
.foot { margin-top: 24px; border-top: 1px solid var(--line); background: var(--mute); } /* 맺음 판과 바닥 사이: 64 → 24(휴대폰), 112 → 40(11-28 — 흰 여백이 넓어 보여서) */
.foot-in { padding-block: 28px calc(104px + env(safe-area-inset-bottom)); }
.foot b { font-size: 17px; letter-spacing: 0.06em; }
.foot p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--meta); }
/* 두 칸: 이름 · 한 줄 / 도입 문의. 좁으면 한 칸씩 쌓인다 */
.foot-cols { display: grid; gap: 28px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.foot-col h2 { margin: 0 0 4px; font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: 0; color: var(--meta); }
.foot-col a { font-size: 15px; font-weight: 700; line-height: 1.5; text-decoration: none; transition: opacity 0.15s; }
.foot-col a:hover { opacity: 0.6; }
.foot-col p { margin: 0; font-size: 13px; }
@media (min-width: 768px) {
  .foot-cols { grid-template-columns: 1fr auto; gap: 96px; }
}
@media (min-width: 768px) {
  .bar { display: none; }
  .foot { margin-top: 40px; }
  .foot-in { padding-block: 36px 44px; }
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .cue i::after, .ask-text::after { animation: none; }
  .marquee.ready .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
